1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

remove JumpTableDirective, it is always null.

llvm-svn: 94445
This commit is contained in:
Chris Lattner 2010-01-25 20:52:54 +00:00
parent b05aa7f639
commit fafb52a75a
4 changed files with 6 additions and 7 deletions

View File

@ -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;

View File

@ -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 ?

View File

@ -48,7 +48,6 @@ MCAsmInfo::MCAsmInfo() {
AlignDirective = "\t.align\t";
AlignmentIsInBytes = true;
TextAlignFillValue = 0;
JumpTableDirective = 0;
PICJumpTableDirective = 0;
GlobalDirective = "\t.globl\t";
SetDirective = 0;

View File

@ -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()