summaryrefslogtreecommitdiff
path: root/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-31 03:02:08 +0000
committerChris Lattner <sabre@nondot.org>2009-12-31 03:02:08 +0000
commitf0908a351ab123a1ad7b145a5e4bc28430be0d94 (patch)
treeb11b59f7d7c69a969638e809767eaa5864fd3867 /lib/Analysis/DebugInfo.cpp
parent6e7f3b39efdcd023e4763695907daafd6a6f609a (diff)
downloadllvm-f0908a351ab123a1ad7b145a5e4bc28430be0d94.tar.gz
llvm-f0908a351ab123a1ad7b145a5e4bc28430be0d94.tar.bz2
llvm-f0908a351ab123a1ad7b145a5e4bc28430be0d94.tar.xz
fix Analysis/DebugInfo.h to not include Metadata.h. Do this
by moving one method out of line and eliminating redundant checks from other methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r--lib/Analysis/DebugInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index aa1f78ebc9..de2d839f6d 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -120,6 +120,11 @@ GlobalVariable *DIDescriptor::getGlobalVariableField(unsigned Elt) const {
return 0;
}
+unsigned DIVariable::getNumAddrElements() const {
+ return DbgNode->getNumOperands()-6;
+}
+
+
//===----------------------------------------------------------------------===//
// Predicates
//===----------------------------------------------------------------------===//