diff options
| author | Devang Patel <dpatel@apple.com> | 2009-01-05 19:55:07 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-01-05 19:55:07 +0000 |
| commit | 57edbbf1b08be812a21df5582062556088767cdd (patch) | |
| tree | d6f253599b67fd0b84241810fac5cdd4b317d464 /llvm/lib/Analysis | |
| parent | 6e01600398262c6939ea084376dd6ffa69b88335 (diff) | |
| download | bcm5719-llvm-57edbbf1b08be812a21df5582062556088767cdd.tar.gz bcm5719-llvm-57edbbf1b08be812a21df5582062556088767cdd.zip | |
Add classof() methods so that dwarf writer can decide what DIDescriptor is in its hand.
llvm-svn: 61740
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 8b802d7fffa..b5ff34ecaff 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/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 //===----------------------------------------------------------------------===// |

