diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-01 18:26:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 18:26:53 +0000 |
commit | cfe26c930ae691ff3012736555846c45087e1a9e (patch) | |
tree | b68b70097da64da9be4a068f62d7ae3d43e05896 /include/llvm/Type.h | |
parent | 9636a91649f168f41b477cba705287665e054f79 (diff) | |
download | external_llvm-cfe26c930ae691ff3012736555846c45087e1a9e.zip external_llvm-cfe26c930ae691ff3012736555846c45087e1a9e.tar.gz external_llvm-cfe26c930ae691ff3012736555846c45087e1a9e.tar.bz2 |
Add more support for new style casts
Convert more code to use them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 2a43153..687b12a 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -187,13 +187,6 @@ public: inline bool isPrimitiveType() const { return ID < FirstDerivedTyID; } inline bool isDerivedType() const { return ID >= FirstDerivedTyID; } - inline const DerivedType *castDerivedType() const { - return isDerivedType() ? (const DerivedType*)this : 0; - } - inline const DerivedType *castDerivedTypeAsserting() const { - assert(isDerivedType()); - return (const DerivedType*)this; - } // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool isa(const Type *T) { return true; } |