This patch tackles the problem of parsing Mips
[oota-llvm.git] / lib / Target / Mips / InstPrinter / MipsInstPrinter.cpp
index 68d3ac5f3bd09aa446ba0f1bb2b051fa6dab7063..97c367fbf1adebd35f5afc67872831313cd118b3 100644 (file)
@@ -149,6 +149,11 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) {
     OS << ')';
 }
 
+void MipsInstPrinter::printCPURegs(const MCInst *MI, unsigned OpNo,
+                                   raw_ostream &O) {
+  printRegName(O, MI->getOperand(OpNo).getReg());
+}
+
 void MipsInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
                                    raw_ostream &O) {
   const MCOperand &Op = MI->getOperand(OpNo);