[PATCH] D53842: [WebAssembly] Parsing missing directives to produce valid .o

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 16:25:04 PDT 2018


dschuff added inline comments.


================
Comment at: lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp:282
+                                            Triple::wasm64);
+          // TODO: do we ideally want more generic handling like this code
+          // below instead of checkKnownSymbol?
----------------
aardappel wrote:
> I could remove the code below, left in for code review purposes.
In general, I think making the assembler dumb is not a bad thing. Also you could argue that conventions for symbol names are compiler/ABI conventions and should not be automatically assumed by the assembler. So I guess if we thought of it that way it would mean that we'd have something like this generic code here, and the compiler would be required to output a directive declaring the type of `__stack_pointer` as a global, right? I think that is actually better than making the assembler smart about the compiler's ABI. Even the factoring of the Assembler/MC code reflects this idea; it's why there's no good place to put that code if it were shared.


Repository:
  rL LLVM

https://reviews.llvm.org/D53842





More information about the llvm-commits mailing list