From: Daniel Dunbar Date: Fri, 17 Apr 2009 21:10:58 +0000 (+0000) Subject: Don't put msgrefs in used globals (in particular, we don't want X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a81e1e858f9bb75c295c12b5b05e17b49fcd279;p=clang Don't put msgrefs in used globals (in particular, we don't want no-dead-strip set on them). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69388 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 4acc618103..5bb48e4e94 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4995,7 +4995,6 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend( GV->setVisibility(llvm::GlobalValue::HiddenVisibility); GV->setAlignment(16); GV->setSection("__DATA, __objc_msgrefs, coalesced"); - UsedGlobals.push_back(GV); } llvm::Value *Arg1 = CGF.Builder.CreateBitCast(GV, ObjCTypes.MessageRefPtrTy);