summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-03-18 02:34:58 +0000
committerAdrian Prantl <aprantl@apple.com>2014-03-18 02:34:58 +0000
commit1a1647cab6f583a15b902efb78639480509eb446 (patch)
tree4c95a468411c6072d2d176686513363813651753 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parentf521af81efde77a84e2d258445c439c07861e374 (diff)
downloadbcm5719-llvm-1a1647cab6f583a15b902efb78639480509eb446.tar.gz
bcm5719-llvm-1a1647cab6f583a15b902efb78639480509eb446.zip
Switch the type field in DIVariable and DIGlobalVariable over to DITypeRefs.
This allows us to catch more opportunities for ODR-based type uniquing during LTO. Paired commit with CFE which updates some testcases to verify the new DIBuilder behavior. llvm-svn: 204106
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 44eed9406fe..2f6c2546ed4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -199,10 +199,7 @@ public:
assert(Var.isVariable() && "Invalid complex DbgVariable!");
return Var.hasComplexAddress();
}
- bool isBlockByrefVariable() const {
- assert(Var.isVariable() && "Invalid complex DbgVariable!");
- return Var.isBlockByrefVariable();
- }
+ bool isBlockByrefVariable() const;
unsigned getNumAddrElements() const {
assert(Var.isVariable() && "Invalid complex DbgVariable!");
return Var.getNumAddrElements();
@@ -777,6 +774,11 @@ public:
return Ref.resolve(TypeIdentifierMap);
}
+ /// \brief Return the TypeIdentifierMap.
+ const DITypeIdentifierMap& getTypeIdentifierMap() const {
+ return TypeIdentifierMap;
+ }
+
/// Find the DwarfCompileUnit for the given CU Die.
DwarfCompileUnit *lookupUnit(const DIE *CU) const {
return CUDieMap.lookup(CU);
OpenPOWER on IntegriCloud