summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-23 08:03:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-23 08:03:21 +0000
commitf0a8344bac142ff99e331de150cd4bc775c682c3 (patch)
tree7189ae0a39081fa61f67b7c3ab08dde72d6b858d /clang/lib
parent324f80b12a21d98c813e8cb4af9c3535b1a02d67 (diff)
downloadbcm5719-llvm-f0a8344bac142ff99e331de150cd4bc775c682c3.tar.gz
bcm5719-llvm-f0a8344bac142ff99e331de150cd4bc775c682c3.zip
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) llvm-svn: 69880
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 03f15ee7ed5..9dc5fba8e2e 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/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<llvm::Constant*> Used;
OpenPOWER on IntegriCloud