mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add more accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7dab15def6
commit
3c11fb501d
@ -117,6 +117,14 @@ public:
|
|||||||
inline const Type *getReturnType() const { return ResultType; }
|
inline const Type *getReturnType() const { return ResultType; }
|
||||||
inline const ParamTypes &getParamTypes() const { return ParamTys; }
|
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 {
|
virtual const Type *getContainedType(unsigned i) const {
|
||||||
return i == 0 ? ResultType :
|
return i == 0 ? ResultType :
|
||||||
|
Loading…
Reference in New Issue
Block a user