diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-06-19 21:55:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-06-19 21:55:13 +0000 |
commit | 0159ae4295720c5ce8fc770ddb5fed67e90b8d3a (patch) | |
tree | ea7ea8fc345440a39c8b9ee7d490c01d76e25cea /include | |
parent | 4f71c1b2b9b1195d6f5107c433e06dedc0a61d14 (diff) | |
download | external_llvm-0159ae4295720c5ce8fc770ddb5fed67e90b8d3a.zip external_llvm-0159ae4295720c5ce8fc770ddb5fed67e90b8d3a.tar.gz external_llvm-0159ae4295720c5ce8fc770ddb5fed67e90b8d3a.tar.bz2 |
DebugInfo: PR14763/r183329 correct the location of indirect parameters
We had been papering over a problem with location info for non-trivial
types passed by value by emitting their type as references (this caused
the debugger to interpret the location information correctly, but broke
the type of the function). r183329 corrected the type information but
lead to the debugger interpreting the pointer parameter as the value -
the debug info describing the location needed an extra dereference.
Use a new flag in DIVariable to add the extra indirection (either by
promoting an existing DW_OP_reg (parameter passed in a register) to
DW_OP_breg + 0 or by adding DW_OP_deref to an existing DW_OP_breg + n
(parameter passed on the stack).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index c683d7f..5f489e0 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -407,7 +407,8 @@ namespace llvm { virtual unsigned getISAEncoding() { return 0; } /// EmitDwarfRegOp - Emit dwarf register operation. - virtual void EmitDwarfRegOp(const MachineLocation &MLoc) const; + virtual void EmitDwarfRegOp(const MachineLocation &MLoc, + bool Indirect) const; //===------------------------------------------------------------------===// // Dwarf Lowering Routines |