diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-03-29 19:04:19 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-03-29 19:04:19 +0000 |
| commit | 8fea42d95536a396a096aa0c9094de64b50994fc (patch) | |
| tree | 3a0adae3df0733739c2c957ce4f31cb92e57ce4d /llvm | |
| parent | 0623f2984f7dafa5fc722fc0c93770513fb0d1f7 (diff) | |
| download | bcm5719-llvm-8fea42d95536a396a096aa0c9094de64b50994fc.tar.gz bcm5719-llvm-8fea42d95536a396a096aa0c9094de64b50994fc.zip | |
Add more accessors
llvm-svn: 2047
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/DerivedTypes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/DerivedTypes.h b/llvm/include/llvm/DerivedTypes.h index c0d66bebad7..67bb02b2e9c 100644 --- a/llvm/include/llvm/DerivedTypes.h +++ b/llvm/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 : |

