]> granicus.if.org Git - clang/commitdiff
Mark IMAGE_INFO as constant on x86_64-darwin.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 23 Apr 2009 08:03:21 +0000 (08:03 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 23 Apr 2009 08:03:21 +0000 (08:03 +0000)
 - This shouldn't change anything, we never actually access it, but
   this is consistent with llvm-gcc (and 32-bit)

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

lib/CodeGen/CGObjCMac.cpp

index 03f15ee7ed568c38c4ee452780ba4687d27a9955..9dc5fba8e2e5dd36c95d93bdee92bbbedbf32f92 100644 (file)
@@ -4101,6 +4101,7 @@ void CGObjCNonFragileABIMac::FinishNonFragileABIModule() {
                              "\01L_OBJC_IMAGE_INFO",
                              &CGM.getModule());
   IMGV->setSection("__DATA, __objc_imageinfo, regular, no_dead_strip");
+  IMGV->setConstant(true);
   UsedGlobals.push_back(IMGV);
   
   std::vector<llvm::Constant*> Used;