diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-23 08:03:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-23 08:03:21 +0000 |
commit | 325f75896d346605a00b9cc3494ed20a2a5dfb4e (patch) | |
tree | 6f6f85be8f258f405bb1d160bf91b7ce43086ac6 /lib/CodeGen | |
parent | 4863db4266d066617a1e5ad7c0f3f28c7995c61b (diff) |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<llvm::Constant*> Used; |