X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FMC%2FMCInstPrinter.cpp;h=e15e10761699473f0959ab9e4c92610572877ef0;hb=92ec8e1427e595d540f2238c7a1bb05fbd013013;hp=81a939ffaaef3156fc30132b1b241b6d19bc3163;hpb=cde4ce411b1ace4a80ea1dd38df97e8508aed0c9;p=oota-llvm.git diff --git a/lib/MC/MCInstPrinter.cpp b/lib/MC/MCInstPrinter.cpp index 81a939ffaae..e15e1076169 100644 --- a/lib/MC/MCInstPrinter.cpp +++ b/lib/MC/MCInstPrinter.cpp @@ -9,6 +9,7 @@ #include "llvm/MC/MCInstPrinter.h" #include "llvm/ADT/StringRef.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; MCInstPrinter::~MCInstPrinter() { @@ -23,3 +24,7 @@ StringRef MCInstPrinter::getOpcodeName(unsigned Opcode) const { void MCInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const { assert(0 && "Target should implement this"); } + +void MCInstPrinter::printAnnotation(raw_ostream &OS, StringRef Annot) { + if (!Annot.empty()) OS << Annot << "\n"; +}