add accessor

llvm-svn: 39259
This commit is contained in:
Chris Lattner 2007-01-21 23:09:17 +00:00
parent 3a386e2fa8
commit 2e89ebbcc8
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ public:
void setDeclChain(Decl *D) { DeclChain = D; }
unsigned getNumParams() const;
VarDecl *getParamDecl(unsigned i) const {
assert(i < getNumParams() && "Illegal param #");
return ParamInfo[i];
}
void setParams(VarDecl **NewParamInfo, unsigned NumParams);
// Implement isa/cast/dyncast/etc.