mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-01-31 01:35:20 +01:00
Add classof() methods so that dwarf writer can decide what DIDescriptor is in its hand.
llvm-svn: 61740
This commit is contained in:
@@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user