summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-11 20:30:58 +0000
committerChris Lattner <sabre@nondot.org>2009-08-11 20:30:58 +0000
commitfe27130454082b196e82041dd771534aa1699699 (patch)
tree1f80bc630021628ad4c352c2e5f3264e4ff8634e /llvm/lib/Target/Mips
parentd5a91796852b72b8f8101946689e933122818353 (diff)
downloadbcm5719-llvm-fe27130454082b196e82041dd771534aa1699699.tar.gz
bcm5719-llvm-fe27130454082b196e82041dd771534aa1699699.zip
split "JumpTableDirective" (an existing hack) into a PIC and nonPIC
version. This allows TAI implementations to specify the directive to use based on the mode being codegen'd for. The real fix for this is to remove JumpTableDirective, but I don't feel like diving into the jumptable snarl just now. llvm-svn: 78709
Diffstat (limited to 'llvm/lib/Target/Mips')
-rw-r--r--llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp b/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp
index aa40ff6a5ac..8cb58c8bb97 100644
--- a/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp
@@ -24,7 +24,5 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
PrivateGlobalPrefix = "$";
CommentString = "#";
ZeroDirective = "\t.space\t";
-
- if (TM.getRelocationModel() == Reloc::PIC_)
- JumpTableDirective = "\t.gpword\t";
+ PICJumpTableDirective = "\t.gpword\t";
}
OpenPOWER on IntegriCloud