aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DerivedTypes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index c0d66be..67bb02b 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -117,6 +117,14 @@ public:
inline const Type *getReturnType() const { return ResultType; }
inline const ParamTypes &getParamTypes() const { return ParamTys; }
+ // Parameter type accessors...
+ const Type *getParamType(unsigned i) const { return ParamTys[i]; }
+
+ // getNumParams - Return the number of fixed parameters this function type
+ // requires. This does not consider varargs.
+ //
+ unsigned getNumParams() const { return ParamTys.size(); }
+
virtual const Type *getContainedType(unsigned i) const {
return i == 0 ? ResultType :