summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-08 19:07:44 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-08 19:07:44 +0000
commit8199f0bc7722a4d93099cafdb30fa465a2746ce8 (patch)
treeaec6a3916e12dccc7ea2b8ee1f469b568d0bc676 /lib/CodeGen/AsmPrinter/DwarfDebug.h
parent43251008c2ce836f47a6e4c8a64947069d6b268e (diff)
downloadllvm-8199f0bc7722a4d93099cafdb30fa465a2746ce8.tar.gz
llvm-8199f0bc7722a4d93099cafdb30fa465a2746ce8.tar.bz2
llvm-8199f0bc7722a4d93099cafdb30fa465a2746ce8.tar.xz
Add DbgVariable::resolve per Eric's suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index e8ca9d2783..6d22f27214 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -209,6 +209,11 @@ public:
return Var.getAddrElement(i);
}
DIType getType() const;
+
+private:
+ /// resolve - Look in the DwarfDebug map for the MDNode that
+ /// corresponds to the reference.
+ template <typename T> T resolve(DIRef<T> Ref) const;
};
/// \brief Collects and handles information specific to a particular