[PATCH] D94347: [WebAssembly] locals can now be indirect in DWARF
Derek Schuff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 13:40:07 PST 2021
dschuff added a subscriber: pfaffe.
dschuff added a comment.
@pfaffe does this make sense? (i.e. when a structure is passed by value, it is passed indirectly, and its DW_AT_location ends with a DW_OP_deref to indicate this)
================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp:64
+ MachineOperand &Op1 = DBI->getOperand(1);
+ bool indirect = Op1.isImm() && Op1.getImm() == 0;
+ Op0.ChangeToTargetIndex(indirect ? llvm::WebAssembly::TI_LOCAL_INDIRECT
----------------
what does the immediate operand of the DBG_VALUE represent here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94347/new/
https://reviews.llvm.org/D94347
More information about the llvm-commits
mailing list