diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-12 21:38:43 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-12 21:38:43 +0000 |
commit | 45d2cfd064000b604b8bdcfc55f32a41324e62dd (patch) | |
tree | 543e340124ee15d9d09ed6bcf56ee9cf62093ee3 /llvm/lib | |
parent | 33a9cef204d1a4ecaed912ad07244a446b6c5ea9 (diff) | |
download | bcm5719-llvm-45d2cfd064000b604b8bdcfc55f32a41324e62dd.tar.gz bcm5719-llvm-45d2cfd064000b604b8bdcfc55f32a41324e62dd.zip |
Add classof() methods to support isa<> and other related facilities.
llvm-svn: 62104
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index b5ff34ecaff..f27321780e0 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -20,7 +20,6 @@ #include "llvm/Instructions.h" #include "llvm/Module.h" #include "llvm/Analysis/ValueTracking.h" -#include "llvm/Support/Dwarf.h" using namespace llvm; //===----------------------------------------------------------------------===// @@ -112,7 +111,7 @@ DIType::DIType(GlobalVariable *gv) : DIDescriptor(gv) { /// isDerivedType - Return true if the specified tag is legal for /// DIDerivedType. -bool DIDerivedType::isDerivedType(unsigned Tag) { +bool DIType::isDerivedType(unsigned Tag) { switch (Tag) { case dwarf::DW_TAG_typedef: case dwarf::DW_TAG_pointer_type: @@ -137,7 +136,7 @@ DIDerivedType::DIDerivedType(GlobalVariable *GV) : DIType(GV, true, true) { /// isCompositeType - Return true if the specified tag is legal for /// DICompositeType. -bool DICompositeType::isCompositeType(unsigned TAG) { +bool DIType::isCompositeType(unsigned TAG) { switch (TAG) { case dwarf::DW_TAG_array_type: case dwarf::DW_TAG_structure_type: @@ -181,11 +180,6 @@ 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 //===----------------------------------------------------------------------===// |