mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
remove JumpTableDirective, it is always null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18821e07a3
commit
cba386ccac
@ -170,9 +170,8 @@ namespace llvm {
|
|||||||
|
|
||||||
//===--- Section Switching Directives ---------------------------------===//
|
//===--- 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.
|
/// table entries. FIXME: REMOVE THIS.
|
||||||
const char *JumpTableDirective; // Defaults to NULL.
|
|
||||||
const char *PICJumpTableDirective; // Defaults to NULL.
|
const char *PICJumpTableDirective; // Defaults to NULL.
|
||||||
|
|
||||||
|
|
||||||
@ -374,8 +373,8 @@ namespace llvm {
|
|||||||
const char *getAscizDirective() const {
|
const char *getAscizDirective() const {
|
||||||
return AscizDirective;
|
return AscizDirective;
|
||||||
}
|
}
|
||||||
const char *getJumpTableDirective(bool isPIC) const {
|
const char *getPICJumpTableDirective() const {
|
||||||
return isPIC ? PICJumpTableDirective : JumpTableDirective;
|
return PICJumpTableDirective;
|
||||||
}
|
}
|
||||||
const char *getAlignDirective() const {
|
const char *getAlignDirective() const {
|
||||||
return AlignDirective;
|
return AlignDirective;
|
||||||
|
@ -538,7 +538,8 @@ void AsmPrinter::printPICJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
|||||||
|
|
||||||
// Use JumpTableDirective otherwise honor the entry size from the jump table
|
// Use JumpTableDirective otherwise honor the entry size from the jump table
|
||||||
// info.
|
// info.
|
||||||
const char *JTEntryDirective = MAI->getJumpTableDirective(isPIC);
|
const char *JTEntryDirective = 0;
|
||||||
|
if (isPIC) JTEntryDirective = MAI->getPICJumpTableDirective();
|
||||||
bool HadJTEntryDirective = JTEntryDirective != NULL;
|
bool HadJTEntryDirective = JTEntryDirective != NULL;
|
||||||
if (!HadJTEntryDirective) {
|
if (!HadJTEntryDirective) {
|
||||||
JTEntryDirective = MJTI->getEntrySize() == 4 ?
|
JTEntryDirective = MJTI->getEntrySize() == 4 ?
|
||||||
|
@ -48,7 +48,6 @@ MCAsmInfo::MCAsmInfo() {
|
|||||||
AlignDirective = "\t.align\t";
|
AlignDirective = "\t.align\t";
|
||||||
AlignmentIsInBytes = true;
|
AlignmentIsInBytes = true;
|
||||||
TextAlignFillValue = 0;
|
TextAlignFillValue = 0;
|
||||||
JumpTableDirective = 0;
|
|
||||||
PICJumpTableDirective = 0;
|
PICJumpTableDirective = 0;
|
||||||
GlobalDirective = "\t.globl\t";
|
GlobalDirective = "\t.globl\t";
|
||||||
SetDirective = 0;
|
SetDirective = 0;
|
||||||
|
@ -460,7 +460,7 @@ void X86AsmPrinter::printPICJumpTableSetLabel(unsigned uid,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// We don't need .set machinery if we have GOT-style relocations
|
// We don't need .set machinery if we have GOT-style relocations
|
||||||
if (Subtarget->isPICStyleGOT())
|
if (Subtarget->isPICStyleGOT()) // X86-32 on ELF.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
O << MAI->getSetDirective() << ' ' << MAI->getPrivateGlobalPrefix()
|
O << MAI->getSetDirective() << ' ' << MAI->getPrivateGlobalPrefix()
|
||||||
|
Loading…
Reference in New Issue
Block a user