aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-10 00:32:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-10 00:32:18 +0000
commit5323a4b0a1c248fa2ffdf886bb41a5d8fba71d2d (patch)
treeca15547af9db5224793dd3bcd68d7d2a8fcc2926 /lib/CodeGen/CGCall.h
parent3913f184c84135fb4612743f1faa6c1edd2dd055 (diff)
Tweak CGCall functions:
- Move actual param attr list creation to CodeGenFunction::ConstructParamAttrList. - Make ReturnTypeUsesSret static. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.h')
-rw-r--r--lib/CodeGen/CGCall.h15
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