diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-03-18 02:34:58 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-03-18 02:34:58 +0000 |
commit | 1a1647cab6f583a15b902efb78639480509eb446 (patch) | |
tree | 4c95a468411c6072d2d176686513363813651753 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | f521af81efde77a84e2d258445c439c07861e374 (diff) | |
download | bcm5719-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.h | 10 |
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); |