[WebAssembly] section kind can be code
commit9310123e7f067cb932b5c561529b8b46c42451d4
authorSam Clegg <sbc@chromium.org>
Thu, 7 Dec 2017 02:55:51 +0000 (7 02:55 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 7 Dec 2017 02:55:51 +0000 (7 02:55 +0000)
treec6965c715e20ea0b7350eb025ea37701d2170428
parent6463d1106bef37b4073329cc2061064892752958
[WebAssembly] section kind can be code

Currently, when creating a named section, the Wasm
frontend forces it to use `SectionKind::Data`, whereas
in fact C++ does generate code sections with custom
names.

Patch by Nicholas Wilson

Differential Revision: https://reviews.llvm.org/D40906

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320002 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/MC/WebAssembly/custom-code-section.ll [new file with mode: 0644]