[PATCH] D87233: [POC][DebugInfo] Use entry values within IR
David Stenberg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 06:09:10 PDT 2020
dstenb added inline comments.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp:604-605
+
+ if (IsEmittingEntryValue)
+ finalizeEntryValue();
}
----------------
This means that the entry value will cover the whole expression, regardless of the number of operands that are specified in DW_OP_LLVM_entry_value? I think we want to do this conditionally in the ExprCursor loop?
Doing this after `addStackValue()` makes it so that the entry value contains an implicit location description, but as mentioned in DWARF5 2.5.1.7 the second operand in a `DW_OP_entry_value` is "a block containing a DWARF expression or a register location description", and as was discussed in D75270 and [0], location descriptions does not seem to be allowed to be used where "DWARF expressions" are specified.
[0] http://lists.dwarfstd.org/pipermail/dwarf-discuss-dwarfstd.org/2020-March/004610.html
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87233/new/
https://reviews.llvm.org/D87233
More information about the llvm-commits
mailing list