aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h4
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