diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-06 00:00:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-06 00:00:56 +0000 |
commit | dd508382ccba8f38643d654e9a09e95a9b2c93e9 (patch) | |
tree | 60eba5cd01fd16a10629b908fe22c806f5db59d2 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 411bd590d118ba84718bc72e9c770e6b4dec3dc0 (diff) | |
download | bcm5719-llvm-dd508382ccba8f38643d654e9a09e95a9b2c93e9.tar.gz bcm5719-llvm-dd508382ccba8f38643d654e9a09e95a9b2c93e9.zip |
Remove the last of the special case code for emitting attributes.
This works by moving the existing code into the DIEValue hierarchy
and using the DwarfDebug pointer off of the AsmPrinter to access
any global information we need.
llvm-svn: 203033
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index a63900a31ae..93f04895481 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -759,6 +759,10 @@ public: return Ref.resolve(TypeIdentifierMap); } + /// Find the DwarfCompileUnit for the given CU Die. + DwarfCompileUnit *lookupUnit(const DIE *CU) const { + return CUDieMap.lookup(CU); + } /// isSubprogramContext - Return true if Context is either a subprogram /// or another context nested inside a subprogram. bool isSubprogramContext(const MDNode *Context); |