aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp10
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;
}