diff options
author | Stephen Tozer <Stephen.Tozer@Sony.com> | 2023-01-03 10:11:22 +0000 |
---|---|---|
committer | Stephen Tozer <Stephen.Tozer@Sony.com> | 2023-01-06 19:31:10 +0000 |
commit | c383f4d6550e30866294a0e1907a4519245c03eb (patch) | |
tree | b3d8a647cd0adec7fc8b1c4092d5d97a72279b35 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 2f66c891307cbf1e506b04ac2f7add4dbd64c9c5 (diff) | |
download | llvm-c383f4d6550e30866294a0e1907a4519245c03eb.zip llvm-c383f4d6550e30866294a0e1907a4519245c03eb.tar.gz llvm-c383f4d6550e30866294a0e1907a4519245c03eb.tar.bz2 |
[DebugInfo] Allow non-stack_value variadic expressions and use in DBG_INSTR_REF
Prior to this patch, variadic DIExpressions (i.e. ones that contain
DW_OP_LLVM_arg) could only be created by salvaging debug values to create
stack value expressions, resulting in a DBG_VALUE_LIST being created. As of
the previous patch in this patch stack, DBG_INSTR_REF's syntax has been
changed to match DBG_VALUE_LIST in preparation for supporting variadic
expressions. This patch adds some minor changes needed to allow variadic
expressions that aren't stack values to exist, and allows variadic expressions
that are trivially reduceable to non-variadic expressions to be handled
similarly to non-variadic expressions.
Reviewed by: jmorse
Differential Revision: https://reviews.llvm.org/D133926
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index a1c4bc8..e43a3fb 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1908,8 +1908,8 @@ void llvm::salvageDebugInfoForDbgValues( DII->addVariableLocationOps(AdditionalValues, SalvagedExpr); } else { // Do not salvage using DIArgList for dbg.addr/dbg.declare, as it is - // currently only valid for stack value expressions. Do not salvage - // using DIArgList for dbg.assign yet. FIXME: support this. + // not currently supported in those instructions. Do not salvage using + // DIArgList for dbg.assign yet. FIXME: support this. // Also do not salvage if the resulting DIArgList would contain an // unreasonably large number of values. DII->setKillLocation(); |