[llvm-commits] CVS: llvm/include/llvm/DerivedTypes.h
Chris Lattner
sabre at nondot.org
Fri Jan 12 14:12:09 PST 2007
Changes in directory llvm/include/llvm:
DerivedTypes.h updated: 1.78 -> 1.79
---
Log message:
inline isIntegral to make this method look like classof for all other
derived types
---
Diffs of the changes: (+3 -1)
DerivedTypes.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.78 llvm/include/llvm/DerivedTypes.h:1.79
--- llvm/include/llvm/DerivedTypes.h:1.78 Fri Jan 12 01:05:13 2007
+++ llvm/include/llvm/DerivedTypes.h Fri Jan 12 16:11:53 2007
@@ -103,7 +103,9 @@
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const IntegerType *T) { return true; }
- static inline bool classof(const Type *T) { return T->isIntegral(); }
+ static inline bool classof(const Type *T) {
+ return T->getTypeID() == IntegerTyID;
+ }
};
More information about the llvm-commits
mailing list