[cfe-commits] r69880 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Daniel Dunbar daniel at zuster.org
Thu Apr 23 01:03:22 PDT 2009


Author: ddunbar
Date: Thu Apr 23 03:03:21 2009
New Revision: 69880

URL: http://llvm.org/viewvc/llvm-project?rev=69880&view=rev
Log:
Mark IMAGE_INFO as constant on x86_64-darwin.
 - This shouldn't change anything, we never actually access it, but
   this is consistent with llvm-gcc (and 32-bit)

Modified:
    cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=69880&r1=69879&r2=69880&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Thu Apr 23 03:03:21 2009
@@ -4101,6 +4101,7 @@
                              "\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;





More information about the cfe-commits mailing list