diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-09 01:06:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-09 01:06:48 +0000 |
commit | 46f45b9bec4a265ad8400a538e5ec3a5683617f1 (patch) | |
tree | 6a9ca0751b54becfb033fb33a1bc954079ad34d1 /lib/CodeGen/CGCall.cpp | |
parent | f47be933bef073708c2536fa69ef946e7fe08134 (diff) |
Change CodeGen to emit calls using (RValue,Type) list:
- Add CodeGenFunction::EmitAnyExprToTemp
o Like EmitAnyExpr, but emits aggregates to a temporary location if
none is available. Seems like this should be simpler (even aside
from using first class aggregates).
- Killed CodeGenFunction::EmitCallArg (just append the pair)
- Conversion of RValues to actual call arguments is now isolated in
CodeGenFunction::EmitCall.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index d342ef0af3..a3a330e5e0 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -102,8 +102,7 @@ void CGFunctionInfo::constructParamAttrList(ParamAttrListType &PAL) const { /***/ -CGCallInfo::CGCallInfo(QualType _ResultType, - const llvm::SmallVector<std::pair<llvm::Value*, QualType>, 16> &_Args) +CGCallInfo::CGCallInfo(QualType _ResultType, const CallArgList &_Args) : ResultType(_ResultType), Args(_Args) { ArgTypes.push_back(ResultType); |