kill off printPICLabel now, it's specialness is handled by
authorChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 07:28:26 +0000 (07:28 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 07:28:26 +0000 (07:28 +0000)
the MachineInstr ->MCInst lowering process, not in the
asmprinter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82388 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.h
lib/Target/X86/AsmPrinter/X86IntelInstPrinter.cpp
lib/Target/X86/AsmPrinter/X86IntelInstPrinter.h
lib/Target/X86/X86InstrInfo.td

index 857d80b221d8a33164eca9b719c8aecc2d45b9dd..bc70ffe8d633c87a9566ba93be221e372902a351 100644 (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.
index 4aa738e61e8766a653b8c9cadf88b5aa5045047e..5f28fa46f5f83287a6d19c8375e2ba1fa14876b4 100644 (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) {
index 8899c6b6e8af73d45fe5a71e7c7035ceed3af250..e7821956b33b157816ea1f2875e612407ee8da4a 100644 (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.
index cec61bf2f99564c470e425f79b31a2c8015f4718..1976177eb13c09c1dfa7b00f2eba090f1a1f9cea 100644 (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) {
index 992b3900e289ed490afeca89177b8e6b0dbad03d..331875ec034913e3db2b4745162152417b9c6215 100644 (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", []>;