summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-05 00:27:02 +0000
committerEric Christopher <echristo@gmail.com>2013-10-05 00:27:02 +0000
commit9e429ae779a35d543ae303ddd8a94251d9969f0a (patch)
tree420c8911cdf6a08cc03bc9f0983c2136befedfcc /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
parent938d1d67e87f2a35e755beb3b48b4773237a32e4 (diff)
downloadbcm5719-llvm-9e429ae779a35d543ae303ddd8a94251d9969f0a.tar.gz
bcm5719-llvm-9e429ae779a35d543ae303ddd8a94251d9969f0a.zip
Add a resolve method on CompileUnit that forwards to DwarfDebug.
llvm-svn: 192014
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index 4cdd8fcb56f..b3bf9bee731 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -15,6 +15,7 @@
#define CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H
#include "DIE.h"
+#include "DwarfDebug.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/StringMap.h"
@@ -23,8 +24,6 @@
namespace llvm {
-class DwarfDebug;
-class DwarfUnits;
class MachineLocation;
class MachineOperand;
class ConstantInt;
@@ -353,6 +352,12 @@ private:
/// information entry.
DIEEntry *createDIEEntry(DIE *Entry);
+ /// resolve - Look in the DwarfDebug map for the MDNode that
+ /// corresponds to a scope reference.
+ template <typename T> T resolve(DIRef<T> Ref) const {
+ return DD->resolve(Ref);
+ }
+
private:
// DIEValueAllocator - All DIEValues are allocated through this allocator.
OpenPOWER on IntegriCloud