diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-20 19:09:11 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-20 19:09:11 +0000 |
| commit | ad8051b0b38a931f3f17ca7e945aa3e7b0cdcf9b (patch) | |
| tree | fb0b29c400f4be44ced0b506a7e22d21675d31e4 | |
| parent | 197390e985744105f46d2984d37cde0a412301e3 (diff) | |
| download | bcm5719-llvm-ad8051b0b38a931f3f17ca7e945aa3e7b0cdcf9b.tar.gz bcm5719-llvm-ad8051b0b38a931f3f17ca7e945aa3e7b0cdcf9b.zip | |
Add short forms of the get*Type methods.
llvm-svn: 205
| -rw-r--r-- | llvm/include/llvm/DerivedTypes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/DerivedTypes.h b/llvm/include/llvm/DerivedTypes.h index c83a2d1e4d1..31a35b61848 100644 --- a/llvm/include/llvm/DerivedTypes.h +++ b/llvm/include/llvm/DerivedTypes.h @@ -41,6 +41,9 @@ public: static const MethodType *getMethodType(const Type *Result, const ParamTypes &Params); + static const MethodType *get(const Type *Result, const ParamTypes &Params) { + return getMethodType(Result, Params); + } }; @@ -70,6 +73,9 @@ public: static const ArrayType *getArrayType(const Type *ElementType, int NumElements = -1); + static const ArrayType *get(const Type *ElementType, int NumElements = -1) { + return getArrayType(ElementType, NumElements); + } }; class StructType : public Type { @@ -92,6 +98,9 @@ public: inline const ElementTypes &getElementTypes() const { return ETypes; } static const StructType *getStructType(const ElementTypes &Params); + static const StructType *get(const ElementTypes &Params) { + return getStructType(Params); + } }; @@ -115,6 +124,9 @@ public: static const PointerType *getPointerType(const Type *ElementType); + static const PointerType *get(const Type *ElementType) { + return getPointerType(ElementType); + } }; #endif |

