GV with null value initializer shouldn't go to BSS if it's meant for a mergeable...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 18 Feb 2009 02:19:52 +0000 (02:19 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 18 Feb 2009 02:19:52 +0000 (02:19 +0000)
commitcaa0c2caddcfb56de09e016c4c153d0609ffcf6e
tree91bb25a13862692d2b2df61a4a6258551adb2dcf
parentccd846b73ffce9296e392e550712926845098fab
GV with null value initializer shouldn't go to BSS if it's meant for a mergeable strings section. Currently it only checks for Darwin. Someone else please check if it should apply to other targets as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64877 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
test/CodeGen/X86/cstring.ll [new file with mode: 0644]