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 | 79246322a6103e5435464e6e194f040157e13ba2 (patch) | |
| tree | bdeb693fb2787771b5f09aca405b53fcf7034890 /clang/lib/CodeGen | |
| parent | 9eb02dfa8931c9b6f2b60eafa0baf20ec5cf83a2 (diff) | |
| download | bcm5719-llvm-79246322a6103e5435464e6e194f040157e13ba2.tar.gz bcm5719-llvm-79246322a6103e5435464e6e194f040157e13ba2.zip | |
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
llvm-svn: 126678
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 8dbd85f8b73..904466947c9 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/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); |

