summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-02 22:03:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-02 22:03:45 +0000
commitd931a87f902a045aa82797228ad5a0963da2c6f4 (patch)
tree90eb283b160ccffb28d41359bc092ea193aa53e1 /clang/lib/CodeGen/CGObjC.cpp
parente83866065b206f90aae6a25724dd3c1274720269 (diff)
downloadbcm5719-llvm-d931a87f902a045aa82797228ad5a0963da2c6f4.tar.gz
bcm5719-llvm-d931a87f902a045aa82797228ad5a0963da2c6f4.zip
More ABI API cleanup.
- Lift CGFunctionInfo creation above ReturnTypeUsesSret and EmitFunction{Epi,Pro}log. llvm-svn: 63553
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 0c0b2510e9e..cf37886e6d3 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -183,8 +183,8 @@ void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP,
Args.push_back(std::make_pair(RValue::get(CmdVal), Cmd->getType()));
Args.push_back(std::make_pair(RValue::get(Offset), getContext().LongTy));
Args.push_back(std::make_pair(RValue::get(True), getContext().BoolTy));
- RValue RV = EmitCall(GetPropertyFn, CGFunctionInfo(PD->getType(), Args),
- Args);
+ RValue RV = EmitCall(CGFunctionInfo(PD->getType(), Args),
+ GetPropertyFn, Args);
// We need to fix the type here. Ivars with copy & retain are
// always objects so we don't need to worry about complex or
// aggregates.
@@ -268,7 +268,7 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP,
getContext().BoolTy));
Args.push_back(std::make_pair(RValue::get(IsCopy ? True : False),
getContext().BoolTy));
- EmitCall(SetPropertyFn, CGFunctionInfo(PD->getType(), Args), Args);
+ EmitCall(CGFunctionInfo(PD->getType(), Args), SetPropertyFn, Args);
} else {
SourceLocation Loc = PD->getLocation();
ValueDecl *Self = OMD->getSelfDecl();
OpenPOWER on IntegriCloud