summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-20 19:09:11 +0000
committerChris Lattner <sabre@nondot.org>2001-07-20 19:09:11 +0000
commit94572e0c931703fa3d27889ec50a568523150476 (patch)
tree791621d42cf54172e45969ff96d81b7c07b0ad41 /include
parent7f6330c74390151a344e3160daa90ac437b6b6ae (diff)
downloadllvm-94572e0c931703fa3d27889ec50a568523150476.tar.gz
llvm-94572e0c931703fa3d27889ec50a568523150476.tar.bz2
llvm-94572e0c931703fa3d27889ec50a568523150476.tar.xz
Add short forms of the get*Type methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DerivedTypes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index c83a2d1e4d..31a35b6184 100644
--- a/include/llvm/DerivedTypes.h
+++ b/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