diff options
Diffstat (limited to 'lib/CodeGen/CGCall.h')
-rw-r--r-- | lib/CodeGen/CGCall.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/CodeGen/CGCall.h b/lib/CodeGen/CGCall.h index efeb6ee49f..c51c1d0565 100644 --- a/lib/CodeGen/CGCall.h +++ b/lib/CodeGen/CGCall.h @@ -46,6 +46,10 @@ namespace CodeGen { /// ParmVarDecl or ImplicitParamDecl. typedef llvm::SmallVector<std::pair<const VarDecl*, QualType>, 16> FunctionArgList; + + // FIXME: This should be a better iterator type so that we can avoid + // construction of the ArgTypes smallvectors. + typedef llvm::SmallVector<QualType, 16>::const_iterator ArgTypeIterator; /// CGFunctionInfo - Class to encapsulate the information about a /// function definition. @@ -63,21 +67,20 @@ namespace CodeGen { const Decl* getDecl() const { return TheDecl; } - void constructParamAttrList(ParamAttrListType &Args) const; + ArgTypeIterator argtypes_begin() const; + ArgTypeIterator argtypes_end() const; }; /// CGCallInfo - Class to encapsulate the arguments and clang types /// used in a call. class CGCallInfo { - QualType ResultType; - const CallArgList &Args; - llvm::SmallVector<QualType, 16> ArgTypes; public: CGCallInfo(QualType _ResultType, const CallArgList &Args); - - void constructParamAttrList(ParamAttrListType &Args) const; + + ArgTypeIterator argtypes_begin() const; + ArgTypeIterator argtypes_end() const; }; } // end namespace CodeGen } // end namespace clang |