From: Daniel Dunbar Date: Thu, 23 Apr 2009 08:03:21 +0000 (+0000) Subject: Mark IMAGE_INFO as constant on x86_64-darwin. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=325f75896d346605a00b9cc3494ed20a2a5dfb4e;p=clang 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) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69880 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 03f15ee7ed..9dc5fba8e2 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -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 Used;