]> granicus.if.org Git - clang/commitdiff
Don't put msgrefs in used globals (in particular, we don't want
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Apr 2009 21:10:58 +0000 (21:10 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Apr 2009 21:10:58 +0000 (21:10 +0000)
no-dead-strip set on them).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69388 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 4acc61810368dd8f0f7c59ee3d3e61a3972ef3fd..5bb48e4e94809c321f63dbd48fd53199a5b9f207 100644 (file)
@@ -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);