summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-06-18 20:37:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-06-18 20:37:15 +0000
commitde9e36a74ef5050bfaa80f4d52be6c0bf6757eaf (patch)
tree506b9fab155ddad2afade4cf5475ec47dd619db4 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parent5e1f6d95a220949930f9e5edb19a6ca16370bb81 (diff)
downloadbcm5719-llvm-de9e36a74ef5050bfaa80f4d52be6c0bf6757eaf.tar.gz
bcm5719-llvm-de9e36a74ef5050bfaa80f4d52be6c0bf6757eaf.zip
On Darwin, ams printer should output a second label before a jump table so the linker knows it's a new atom. But this is only needed if the jump table is put in a separate section from the function body.
llvm-svn: 73720
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index c69e591a663..c8d1132314e 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -68,10 +68,9 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM):
// In non-PIC modes, emit a special label before jump tables so that the
// linker can perform more accurate dead code stripping.
- if (TM.getRelocationModel() != Reloc::PIC_) {
- // Emit a local label that is preserved until the linker runs.
- JumpTableSpecialLabelPrefix = "l";
- }
+ // We do not check the relocation model here since it can be overridden
+ // later.
+ JumpTableSpecialLabelPrefix = "l";
}
/// PreferredEHDataFormat - This hook allows the target to select data
OpenPOWER on IntegriCloud