summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-03-06 00:00:56 +0000
committerEric Christopher <echristo@gmail.com>2014-03-06 00:00:56 +0000
commitdd508382ccba8f38643d654e9a09e95a9b2c93e9 (patch)
tree60eba5cd01fd16a10629b908fe22c806f5db59d2 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parent411bd590d118ba84718bc72e9c770e6b4dec3dc0 (diff)
downloadbcm5719-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.h4
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);
OpenPOWER on IntegriCloud