]> granicus.if.org Git - clang/commit
Trim CGObjCRuntime::GenerateMessageSend[Super]
authorDaniel Dunbar <daniel@zuster.org>
Sat, 23 Aug 2008 03:46:30 +0000 (03:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 23 Aug 2008 03:46:30 +0000 (03:46 +0000)
commit8f2926b73ed635afecd020da787af6a837601a2b
tree3bd447986dfc84c49d567dd60b5a7f2434901c2d
parent9299f3fa85796613cc787a2062c9562d07c8613e
Trim CGObjCRuntime::GenerateMessageSend[Super]
 - Returns an RValue.
 - Reduced to only taking the CodeGenFunction, Expr, and Receiver.
 - Becomes responsible for emitting the arguments.

Add CodeGenFunction::EmitCallExprExt
 - Takes optional extra arguments to insert at the head of the call.
 - This allows the Obj-C runtimes to call into this and isolates the
   argument and call instruction generation code to one place. Upshot
   is that we now pass structures (more) correctly.

Also, fix one aspect of generating methods which take structure
arguments (for NeXT). This probably needs to be merged with the
SetFunctionAttributes code in CodeGenModule.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55223 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CGObjCRuntime.h
lib/CodeGen/CodeGenFunction.h