summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-05 19:55:07 +0000
committerDevang Patel <dpatel@apple.com>2009-01-05 19:55:07 +0000
commita22d57d6f8215717298ae0cef34d00ab5104ddea (patch)
tree22b9b66fdc9a11799666645ffc55d6c8d38feda3 /lib
parent50b84f44e4bf4099d62a86abd4f553a095305eac (diff)
downloadllvm-a22d57d6f8215717298ae0cef34d00ab5104ddea.tar.gz
llvm-a22d57d6f8215717298ae0cef34d00ab5104ddea.tar.bz2
llvm-a22d57d6f8215717298ae0cef34d00ab5104ddea.tar.xz
Add classof() methods so that dwarf writer can decide what DIDescriptor is in its hand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 8b802d7fff..b5ff34ecaf 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -181,6 +181,11 @@ unsigned DIArray::getNumElements() const {
return C->getNumOperands();
}
+/// isSubrange - Return true if the specified tag is legal for DISubrange.
+bool DISubrange::isSubrange(unsigned Tag) {
+ return Tag == dwarf::DW_TAG_subrange_type;
+}
+
//===----------------------------------------------------------------------===//
// DIFactory: Basic Helpers
//===----------------------------------------------------------------------===//