this is (unfortunately) several changes mixed together:
authorChris Lattner <sabre@nondot.org>
Sat, 25 Jul 2009 18:57:34 +0000 (18:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Jul 2009 18:57:34 +0000 (18:57 +0000)
commitb4fc419d83bc4afc8ce5a204dd226d5ae58f5896
tree2cbe45d11c952139b20b5a7b347c3fc5b35f7f7b
parent4f05591e616497d88053c6b2c72d94b1365f10bd
this is (unfortunately) several changes mixed together:

1. Spell SectionFlags::Writeable as "Writable".
2. Add predicates for deriving SectionFlags from SectionKinds.
3. Sink ELF-specific getSectionPrefixForUniqueGlobal impl into
   ELFTargetAsmInfo.
4. Fix SectionFlagsForGlobal to know that BSS/ThreadBSS has the
   BSS bit set (the real fix for PR4619).
5. Fix isSuitableForBSS to not put globals with explicit sections
   set in BSS (which was the reason #4 wasn't fixed earlier).
6. Remove my previous hack for PR4619.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77085 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/Target/DarwinTargetAsmInfo.h
include/llvm/Target/ELFTargetAsmInfo.h
include/llvm/Target/TargetAsmInfo.h
lib/CodeGen/ELFWriter.cpp
lib/Target/CellSPU/SPUTargetAsmInfo.cpp
lib/Target/DarwinTargetAsmInfo.cpp
lib/Target/ELFTargetAsmInfo.cpp
lib/Target/PIC16/PIC16AsmPrinter.cpp
lib/Target/PIC16/PIC16TargetAsmInfo.cpp
lib/Target/PowerPC/PPCTargetAsmInfo.cpp
lib/Target/Sparc/SparcTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp
lib/Target/X86/X86TargetAsmInfo.cpp
lib/Target/XCore/XCoreTargetAsmInfo.cpp