[PATCH] D68889: [WebAssembly] Allow multivalue types in block signature operands

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 15:38:35 PDT 2019


sbc100 added inline comments.


================
Comment at: llvm/tools/llvm-mc/llvm-mc.cpp:520
   if (disassemble)
-    Res = Disassembler::disassemble(*TheTarget, TripleName, *STI, *Str,
-                                    *Buffer, SrcMgr, Out->os());
----------------
tlively wrote:
> tlively wrote:
> > sbc100 wrote:
> > > This change to remove the context creation seems seperate.  If so can you split it out?  That was this change can stay wasm specific.
> > It's not separate, unfortunately. In order to create a wasm symbol from the disassembler we need a bunch of target information that this target contains that the old one did not have.
> I am happy to reconsider the wisdom of creating a symbol in the disassembler, though.
I was confused because the existing disassembly already needs a context and even creates one saying: `// Set up the MCContext for creating symbols and MCExpr's.`.   So that approach seems justified and consistent with the existing code.  I'm not clear why it wasn't done this way to begin with.  


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68889/new/

https://reviews.llvm.org/D68889





More information about the llvm-commits mailing list