diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:06:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:06:17 +0000 |
commit | be07811cd0469e55ceecbe413639acaef49ceefd (patch) | |
tree | 5b10029085ced4d73f5a1d18ff9a40f366094a03 /include/llvm/Function.h | |
parent | 746e0014a6c59f285ffefc30c722ef2cf69eb95d (diff) |
* Method::getType should return type cast as MethodType, eliminate getMethodType
* Make Type::*Ty not be const types
* Add a new Type.def file to provide info about types
* Add a full complement of casting methods to the Type class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 2be84d4e4c..6ec28a87a3 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -51,7 +51,9 @@ public: virtual void setName(const string &name, SymbolTable *ST = 0); const Type *getReturnType() const; - const MethodType *getMethodType() const; + const MethodType *getType() const { + return (const MethodType*)Value::getType(); + } // Is the body of this method unknown? (the basic block list is empty if so) // this is true for external methods, defined as forward "declare"ations |