summaryrefslogtreecommitdiffstats
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
parentd360ce9d572acb509f28378d98a6f010dccd4a5d (diff)
downloadbcm5719-llvm-ccabcd7f85023b9a0fe3791361307a5e47f77cd8.tar.gz
bcm5719-llvm-ccabcd7f85023b9a0fe3791361307a5e47f77cd8.zip
remove JumpTableDirective, it is always null.
llvm-svn: 94445
-rw-r--r--llvm/include/llvm/MC/MCAsmInfo.h7
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp1
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp2
4 files changed, 6 insertions, 7 deletions
diff --git a/llvm/include/llvm/MC/MCAsmInfo.h b/llvm/include/llvm/MC/MCAsmInfo.h
index f499189a906..8a3ab738100 100644
--- a/llvm/include/llvm/MC/MCAsmInfo.h
+++ b/llvm/include/llvm/MC/MCAsmInfo.h
@@ -170,9 +170,8 @@ namespace llvm {
//===--- Section Switching Directives ---------------------------------===//
- /// JumpTableDirective - if non-null, the directive to emit before jump
+ /// PICJumpTableDirective - if non-null, the directive to emit before jump
/// table entries. FIXME: REMOVE THIS.
- const char *JumpTableDirective; // Defaults to NULL.
const char *PICJumpTableDirective; // Defaults to NULL.
@@ -374,8 +373,8 @@ namespace llvm {
const char *getAscizDirective() const {
return AscizDirective;
}
- const char *getJumpTableDirective(bool isPIC) const {
- return isPIC ? PICJumpTableDirective : JumpTableDirective;
+ const char *getPICJumpTableDirective() const {
+ return PICJumpTableDirective;
}
const char *getAlignDirective() const {
return AlignDirective;
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 ?
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index c0ca7e9df9f..0f3c46ba826 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/lib/MC/MCAsmInfo.cpp
@@ -48,7 +48,6 @@ MCAsmInfo::MCAsmInfo() {
AlignDirective = "\t.align\t";
AlignmentIsInBytes = true;
TextAlignFillValue = 0;
- JumpTableDirective = 0;
PICJumpTableDirective = 0;
GlobalDirective = "\t.globl\t";
SetDirective = 0;
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
index b3654971a52..44a9a28ef89 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
@@ -460,7 +460,7 @@ void X86AsmPrinter::printPICJumpTableSetLabel(unsigned uid,
return;
// We don't need .set machinery if we have GOT-style relocations
- if (Subtarget->isPICStyleGOT())
+ if (Subtarget->isPICStyleGOT()) // X86-32 on ELF.
return;
O << MAI->getSetDirective() << ' ' << MAI->getPrivateGlobalPrefix()
OpenPOWER on IntegriCloud