diff options
author | Eric Christopher <echristo@apple.com> | 2012-09-12 23:36:19 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-09-12 23:36:19 +0000 |
commit | e521278f00cf5f4ea0cc4aac126df30924d3e705 (patch) | |
tree | 99734d7739b9575c304c09844f0a18bd21cd571f /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | afc945b614a2bf99014d5820c8849451030ea82b (diff) |
Recommit, with fixes:
Add some support for dealing with an object pointer on arguments.
Part of rdar://9797999
which now supports adding the object pointer attribute to the
subprogram as it should.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index d662eadab0..d5ae4687df 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -164,6 +164,16 @@ public: return true; return false; } + + bool isObjectPointer() const { + if (Var.isObjectPointer()) + return true; + if (Var.getTag() == dwarf::DW_TAG_arg_variable + && getType().isObjectPointer()) + return true; + return false; + } + bool variableHasComplexAddress() const { assert(Var.Verify() && "Invalid complex DbgVariable!"); return Var.hasComplexAddress(); |