Add more accessors

llvm-svn: 2047
This commit is contained in:
Chris Lattner 2002-03-29 19:04:19 +00:00
parent 0623f2984f
commit 8fea42d955
1 changed files with 8 additions and 0 deletions

View File

@ -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 :