switch the x86 asmprinters to use getRegisterName instead
[oota-llvm.git] / lib / Target / X86 / AsmPrinter / X86ATTInstPrinter.cpp
index d989f60a5952831c5f5c099342276eb1d712fb93..a25fb2e0e31f68bb9cf91bbb5d55acc55d064a6a 100644 (file)
@@ -19,7 +19,6 @@
 #include "llvm/MC/MCExpr.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/FormattedStream.h"
-#include "llvm/Target/TargetRegisterInfo.h"  // FIXME: REMOVE.
 using namespace llvm;
 
 // Include the auto-generated portion of the assembly writer.
@@ -70,7 +69,7 @@ void X86ATTInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
   
   const MCOperand &Op = MI->getOperand(OpNo);
   if (Op.isReg()) {
-    O << '%' << TRI->getAsmName(Op.getReg());
+    O << '%' << getRegisterName(Op.getReg());
     return;
   } else if (Op.isImm()) {
     O << '$' << Op.getImm();