summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 20:52:54 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 20:52:54 +0000
commitccabcd7f85023b9a0fe3791361307a5e47f77cd8 (patch)
treef8edd75a4dc40bc227d97fb982a46b6fdd2e79ca /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentd360ce9d572acb509f28378d98a6f010dccd4a5d (diff)
downloadbcm5719-llvm-ccabcd7f85023b9a0fe3791361307a5e47f77cd8.tar.gz
bcm5719-llvm-ccabcd7f85023b9a0fe3791361307a5e47f77cd8.zip
remove JumpTableDirective, it is always null.
llvm-svn: 94445
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 292fcdb10c5..39712ded4c2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -538,7 +538,8 @@ void AsmPrinter::printPICJumpTableEntry(const MachineJumpTableInfo *MJTI,
// Use JumpTableDirective otherwise honor the entry size from the jump table
// info.
- const char *JTEntryDirective = MAI->getJumpTableDirective(isPIC);
+ const char *JTEntryDirective = 0;
+ if (isPIC) JTEntryDirective = MAI->getPICJumpTableDirective();
bool HadJTEntryDirective = JTEntryDirective != NULL;
if (!HadJTEntryDirective) {
JTEntryDirective = MJTI->getEntrySize() == 4 ?
OpenPOWER on IntegriCloud