OSDN Git Service

Remove "JumpTableDataSection" from TAI, instead, have AsmPrinter
authorChris Lattner <sabre@nondot.org>
Sat, 1 Aug 2009 23:46:12 +0000 (23:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Aug 2009 23:46:12 +0000 (23:46 +0000)
commit83d77faf6e8fc2c1c2377d037283dc162d8667a1
treecd4f74cf10362426bfb894be3eb9b94b3d8c3fde
parent0da3f4f742bd70e4f12d2f16f766f978417683f1
Remove "JumpTableDataSection" from TAI, instead, have AsmPrinter
compute it based on what it knows.  As part of this, rename getSectionForMergeableConstant
to getSectionForConstant because it works for non-mergable constants also.

The only functionality change from this is that Xcore will start dropping
its jump tables into readonly section instead of data section in -static mode.
This should be fine as the linker resolves the relocations.  If this is a
problem, let me know and we'll come up with another solution.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77833 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetAsmInfo.h
include/llvm/Target/TargetLoweringObjectFile.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/ELFWriter.cpp
lib/Target/DarwinTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp
lib/Target/TargetLoweringObjectFile.cpp
lib/Target/X86/X86TargetAsmInfo.cpp
lib/Target/XCore/XCoreTargetAsmInfo.cpp