These are output by clang -S, so can now be roundtripped thru clang.
(partially) fixes: https://bugs.llvm.org/show_bug.cgi?id=34544
Paths
| Differential D63901
[WebAssembly] Added visibility and ident directives to WasmAsmParser. ClosedPublic Authored by aardappel on Jun 27 2019, 2:49 PM.
Details Summary These are output by clang -S, so can now be roundtripped thru clang. (partially) fixes: https://bugs.llvm.org/show_bug.cgi?id=34544
Diff Detail
Event TimelineComment Actions Reviewers: the code parsing these directives is from ELFAsmParser. We decided in the past that WASM should have its own container format parser, since it is a very different format from ELF, but copying code is never fun. Any suggestions here? Inherit from ELFAsmParser or take it as a member (may have unintended consequences). Pull into new base class for both (ELF people may not be happy with that). Or just ignore it? Comment Actions I'm sad to see more code duplication but OK with adding along with the TODO to find a better way.
sbc100 added inline comments. This revision is now accepted and ready to land.Jun 28 2019, 8:45 AM aardappel added inline comments.
Closed by commit rL364658: [WebAssembly] Added visibility and ident directives to WasmAsmParser. (authored by aardappel). · Explain WhyJun 28 2019, 9:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 207080 llvm/trunk/lib/MC/MCParser/WasmAsmParser.cpp
llvm/trunk/test/MC/WebAssembly/basic-assembly.s
|