summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCWasmStreamer.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-05-02 23:11:38 +0000
committerSam Clegg <sbc@chromium.org>2018-05-02 23:11:38 +0000
commit4d57fbd02a8cb16045da65e078e72aa68e4ac21e (patch)
tree2bf4094560dd50406609a7227d4867883de5f594 /llvm/lib/MC/MCWasmStreamer.cpp
parent87cc4dbde7446bfb5735f03c984ffb3983dc26be (diff)
downloadbcm5719-llvm-4d57fbd02a8cb16045da65e078e72aa68e4ac21e.tar.gz
bcm5719-llvm-4d57fbd02a8cb16045da65e078e72aa68e4ac21e.zip
[WebAssembly] MC: Create and use first class section symbols
Differential Revision: https://reviews.llvm.org/D46335 llvm-svn: 331413
Diffstat (limited to 'llvm/lib/MC/MCWasmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCWasmStreamer.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp
index 504c72cab97..153ea252305 100644
--- a/llvm/lib/MC/MCWasmStreamer.cpp
+++ b/llvm/lib/MC/MCWasmStreamer.cpp
@@ -156,17 +156,8 @@ void MCWasmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
}
void MCWasmStreamer::EmitIdent(StringRef IdentString) {
- MCSection *Comment = getAssembler().getContext().getWasmSection(
- ".comment", SectionKind::getMetadata());
- PushSection();
- SwitchSection(Comment);
- if (!SeenIdent) {
- EmitIntValue(0, 1);
- SeenIdent = true;
- }
- EmitBytes(IdentString);
- EmitIntValue(0, 1);
- PopSection();
+ // TODO(sbc): Add the ident section once we support mergable strings
+ // sections in the object format
}
void MCWasmStreamer::EmitInstToFragment(const MCInst &Inst,
OpenPOWER on IntegriCloud