diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-28 19:55:59 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-28 19:55:59 +0000 |
commit | 3d04a0e534b43504f6879657d47891625bd63352 (patch) | |
tree | 9401192733febe9c306f17095a888004a1130548 /lib/CodeGen/CGObjCMac.cpp | |
parent | c4d2c9074be6eb2091086eddd6c8f052f3b245c8 (diff) |
objc IRGen for Next runtime message API.
The prototype for objc_msgSend() is technically variadic -
`id objc_msgSend(id, SEL, ...)`.
But all method calls should use a prototype that matches the method,
not the prototype for objc_msgSend itself().
// rdar://9048030
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 8dbd85f8b7..904466947c 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -183,7 +183,7 @@ private: Params.push_back(SelectorPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), "objc_msgSend"); } @@ -194,7 +194,7 @@ private: Params.push_back(SelectorPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), - Params, true), + Params, false), "objc_msgSend_stret"); } @@ -209,7 +209,7 @@ private: CGM.CreateRuntimeFunction(llvm::FunctionType::get( llvm::Type::getDoubleTy(VMContext), Params, - true), + false), "objc_msgSend_fpret"); } @@ -221,7 +221,7 @@ private: Params.push_back(SuperPtrTy); Params.push_back(SelectorPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), SuperName); } @@ -232,7 +232,7 @@ private: Params.push_back(SuperPtrTy); Params.push_back(SelectorPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), SuperName); } @@ -245,7 +245,7 @@ private: Params.push_back(SelectorPtrTy); return CGM.CreateRuntimeFunction( llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), - Params, true), + Params, false), "objc_msgSendSuper_stret"); } @@ -258,7 +258,7 @@ private: Params.push_back(SelectorPtrTy); return CGM.CreateRuntimeFunction( llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), - Params, true), + Params, false), "objc_msgSendSuper2_stret"); } @@ -721,7 +721,7 @@ public: Params.push_back(ObjectPtrTy); Params.push_back(MessageRefPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), "objc_msgSend_fixup"); } @@ -731,7 +731,7 @@ public: Params.push_back(ObjectPtrTy); Params.push_back(MessageRefPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), "objc_msgSend_fpret_fixup"); } @@ -741,7 +741,7 @@ public: Params.push_back(ObjectPtrTy); Params.push_back(MessageRefPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), "objc_msgSend_stret_fixup"); } @@ -752,7 +752,7 @@ public: Params.push_back(SuperPtrTy); Params.push_back(SuperMessageRefPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), "objc_msgSendSuper2_fixup"); } @@ -763,7 +763,7 @@ public: Params.push_back(SuperPtrTy); Params.push_back(SuperMessageRefPtrTy); return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, - Params, true), + Params, false), "objc_msgSendSuper2_stret_fixup"); } @@ -5693,7 +5693,7 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend( FunctionType::ExtInfo()); llvm::Value *Callee = CGF.Builder.CreateStructGEP(Arg1, 0); Callee = CGF.Builder.CreateLoad(Callee); - const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, true); + const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, false); Callee = CGF.Builder.CreateBitCast(Callee, llvm::PointerType::getUnqual(FTy)); return CGF.EmitCall(FnInfo1, Callee, Return, ActualArgs); |