diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-01-06 15:52:22 -0300 |
---|---|---|
committer | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-02-01 13:07:47 -0500 |
commit | f84d30e172b1f2365b1437b931d99156a76ed8f2 (patch) | |
tree | 019679edca0163f408633f17e4fbf4f69ceb9dfa /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 9b94a67f8232cfb48b6d00fd217792d323f09c6f (diff) | |
download | llvm-f84d30e172b1f2365b1437b931d99156a76ed8f2.zip llvm-f84d30e172b1f2365b1437b931d99156a76ed8f2.tar.gz llvm-f84d30e172b1f2365b1437b931d99156a76ed8f2.tar.bz2 |
Reland "[codegen] Store address of indirect arguments on the stack"
The commit was reverted due to a regression in debug information of an
optimized code test in lldb. This has since been addressed by:
1. rGf753e5be8239: [LiveDebugValues] Allow EntryValue with OP_deref
expressions
2. rG055f2f04e658: [mem2reg][debuginfo] Handle op_deref when converting
dbg.declare
Differential Revision: https://reviews.llvm.org/D141381
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index fafc0f8..bb91b51 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -4840,9 +4840,10 @@ void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable( llvm::DILocalVariable * CGDebugInfo::EmitDeclareOfArgVariable(const VarDecl *VD, llvm::Value *AI, - unsigned ArgNo, CGBuilderTy &Builder) { + unsigned ArgNo, CGBuilderTy &Builder, + bool UsePointerValue) { assert(CGM.getCodeGenOpts().hasReducedDebugInfo()); - return EmitDeclare(VD, AI, ArgNo, Builder); + return EmitDeclare(VD, AI, ArgNo, Builder, UsePointerValue); } namespace { |