kill off printPICLabel now, it's specialness is handled by

the MachineInstr ->MCInst lowering process, not in the 
asmprinter.

llvm-svn: 82388
This commit is contained in:
Chris Lattner 2009-09-20 07:28:26 +00:00
parent 609fbed49f
commit a93dcf1bc0
5 changed files with 2 additions and 18 deletions

View File

@ -44,11 +44,6 @@ void X86ATTInstPrinter::printSSECC(const MCInst *MI, unsigned Op) {
}
}
void X86ATTInstPrinter::printPICLabel(const MCInst *MI, unsigned Op) {
llvm_unreachable("This is only used for MOVPC32r,"
"should lower before instruction printing!");
}
/// print_pcrel_imm - This is used to print an immediate value that ends up
/// being encoded as a pc-relative value. These print slightly differently, for
/// example, a $ is not emitted.

View File

@ -37,7 +37,6 @@ public:
void printMemReference(const MCInst *MI, unsigned Op);
void printLeaMemReference(const MCInst *MI, unsigned Op);
void printSSECC(const MCInst *MI, unsigned Op);
void printPICLabel(const MCInst *MI, unsigned Op);
void print_pcrel_imm(const MCInst *MI, unsigned OpNo);
void printopaquemem(const MCInst *MI, unsigned OpNo) {

View File

@ -1,4 +1,4 @@
//===-- X86IntelInstPrinter.cpp - AT&T assembly instruction printing --------===//
//===-- X86IntelInstPrinter.cpp - AT&T assembly instruction printing ------===//
//
// The LLVM Compiler Infrastructure
//
@ -45,11 +45,6 @@ void X86IntelInstPrinter::printSSECC(const MCInst *MI, unsigned Op) {
}
}
void X86IntelInstPrinter::printPICLabel(const MCInst *MI, unsigned Op) {
llvm_unreachable("This is only used for MOVPC32r,"
"should lower before instruction printing!");
}
/// print_pcrel_imm - This is used to print an immediate value that ends up
/// being encoded as a pc-relative value. These print slightly differently, for
/// example, a $ is not emitted.

View File

@ -37,7 +37,6 @@ public:
void printMemReference(const MCInst *MI, unsigned Op);
void printLeaMemReference(const MCInst *MI, unsigned Op);
void printSSECC(const MCInst *MI, unsigned Op);
void printPICLabel(const MCInst *MI, unsigned Op);
void print_pcrel_imm(const MCInst *MI, unsigned OpNo);
void printopaquemem(const MCInst *MI, unsigned OpNo) {

View File

@ -226,10 +226,6 @@ def SSECC : Operand<i8> {
let PrintMethod = "printSSECC";
}
def piclabel: Operand<i32> {
let PrintMethod = "printPICLabel";
}
def ImmSExt8AsmOperand : AsmOperandClass {
let Name = "ImmSExt8";
let SuperClass = ImmAsmOperand;
@ -552,7 +548,7 @@ def INT : I<0xcd, RawFrm, (outs), (ins i8imm:$trap), "int\t$trap", []>;
// PIC base
let neverHasSideEffects = 1, isNotDuplicable = 1, Uses = [ESP] in
def MOVPC32r : Ii32<0xE8, Pseudo, (outs GR32:$reg), (ins piclabel:$label),
def MOVPC32r : Ii32<0xE8, Pseudo, (outs GR32:$reg), (ins i32imm:$label),
"call\t$label\n\t"
"pop{l}\t$reg", []>;