summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-01-11 00:13:08 +0000
committerBill Wendling <isanbard@gmail.com>2012-01-11 00:13:08 +0000
commit37b94c6b4e605c522164bcafc58ea1e1afb50cc0 (patch)
tree70979afa0d13ea1f8c04a6dfea8a4b40e2cd2e67 /lib/CodeGen/MachineCSE.cpp
parentdcc296d420d064e4cedfc80abc8df6bfb0b35b03 (diff)
downloadllvm-37b94c6b4e605c522164bcafc58ea1e1afb50cc0.tar.gz
llvm-37b94c6b4e605c522164bcafc58ea1e1afb50cc0.tar.bz2
llvm-37b94c6b4e605c522164bcafc58ea1e1afb50cc0.tar.xz
If the global variable is removed by the linker, then don't constant merge it
with other symbols. An object in the __cfstring section is suppoed to be filled with CFString objects, which have a pointer to ___CFConstantStringClassReference followed by a pointer to a __cstring. If we allow the object in the __cstring section to be merged with another global, then it could end up in any section. Because the linker is going to remove these symbols in the final executable, we shouldn't bother to merge them. <rdar://problem/10564621> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions