Add classof() methods so that dwarf writer can decide what DIDescriptor is in its hand.

llvm-svn: 61740
This commit is contained in:
Devang Patel
2009-01-05 19:55:07 +00:00
parent 4b4351d249
commit 07cb07d80e
2 changed files with 22 additions and 2 deletions

View File

@@ -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
//===----------------------------------------------------------------------===//