diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-16 03:19:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-16 03:19:19 +0000 |
commit | b7ec246872b412f0e7bb9e93eacfd78cfa6adfb3 (patch) | |
tree | 03d87c2a2a8966f8fa3652531269a98558147584 /lib/CodeGen/CGObjCGNU.cpp | |
parent | 54d19091a809d30a5e6e352fda53377d69ebda66 (diff) |
Add NeXT runtime support for generating methods.
Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an
ImplicitParamDecl.
Drop hasAggregateLLVMType from CodeGenModule.cpp (use version in
CodeGenFunction).
Change the Objective-C method generation to use EmitParmDecl for
implicit parameters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 7257f8d569..48c82c12f5 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -951,16 +951,6 @@ llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD) { llvm::GlobalValue::InternalLinkage, FunctionName, &TheModule); - llvm::Function::arg_iterator AI = Method->arg_begin(); - // Name the struct return argument. - // FIXME: This is probably the wrong test. - if (!ReturnTy->isFirstClassType() && ReturnTy != llvm::Type::VoidTy) { - AI->setName("agg.result"); - ++AI; - } - AI->setName("self"); - ++AI; - AI->setName("_cmd"); return Method; } |