Don't attach annotations to MCInst's. Instead, have the disassembler return, and...
[oota-llvm.git] / lib / Target / MBlaze / InstPrinter / MBlazeInstPrinter.cpp
index a7fd287990b7f4d6fe635610084b37bf0b45b371..7ece492c2f186588ecf58188e8ae3fceb7ce1345 100644 (file)
@@ -25,8 +25,10 @@ using namespace llvm;
 // Include the auto-generated portion of the assembly writer.
 #include "MBlazeGenAsmWriter.inc"
 
-void MBlazeInstPrinter::printInst(const MCInst *MI, raw_ostream &O) {
+void MBlazeInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
+                                  StringRef Annot) {
   printInstruction(MI, O);
+  if (CommentStream) printAnnotation(*CommentStream, Annot);
 }
 
 void MBlazeInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,