summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCWasmStreamer.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-10-20 21:28:38 +0000
committerSam Clegg <sbc@chromium.org>2017-10-20 21:28:38 +0000
commit12fd3da9d166b0fc1148f014318218e0542a75b6 (patch)
treed3cedea2e69faf3432d10457e3ea724661b91fba /llvm/lib/MC/MCWasmStreamer.cpp
parentc420b61b2650c935220b5cd6a7e000b198263774 (diff)
downloadbcm5719-llvm-12fd3da9d166b0fc1148f014318218e0542a75b6.tar.gz
bcm5719-llvm-12fd3da9d166b0fc1148f014318218e0542a75b6.zip
[WebAssembly] MC: Fix crash when -g specified.
At this point we don't output any debug sections or thier relocations. Differential Revision: https://reviews.llvm.org/D39076 llvm-svn: 316240
Diffstat (limited to 'llvm/lib/MC/MCWasmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCWasmStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp
index 5399f4ae58e..287b7cf7b23 100644
--- a/llvm/lib/MC/MCWasmStreamer.cpp
+++ b/llvm/lib/MC/MCWasmStreamer.cpp
@@ -157,7 +157,7 @@ void MCWasmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
void MCWasmStreamer::EmitIdent(StringRef IdentString) {
MCSection *Comment = getAssembler().getContext().getWasmSection(
- ".comment", wasm::WASM_SEC_DATA);
+ ".comment", SectionKind::getMetadata());
PushSection();
SwitchSection(Comment);
if (!SeenIdent) {
OpenPOWER on IntegriCloud