From 4d57fbd02a8cb16045da65e078e72aa68e4ac21e Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 2 May 2018 23:11:38 +0000 Subject: [WebAssembly] MC: Create and use first class section symbols Differential Revision: https://reviews.llvm.org/D46335 llvm-svn: 331413 --- llvm/lib/MC/MCWasmStreamer.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'llvm/lib/MC/MCWasmStreamer.cpp') 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, -- cgit v1.2.3