X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FMC%2FMCInstPrinter.cpp;h=e15e10761699473f0959ab9e4c92610572877ef0;hb=92ec8e1427e595d540f2238c7a1bb05fbd013013;hp=f0fa2cda4a8319ac0a2fb851a3ba0c8b58c34062;hpb=ede042dc8d59ff48a48ef8e2271f2a7ee8324ba5;p=oota-llvm.git diff --git a/lib/MC/MCInstPrinter.cpp b/lib/MC/MCInstPrinter.cpp index f0fa2cda4a8..e15e1076169 100644 --- a/lib/MC/MCInstPrinter.cpp +++ b/lib/MC/MCInstPrinter.cpp @@ -8,8 +8,6 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCInstPrinter.h" -#include "llvm/MC/MCAsmInfo.h" -#include "llvm/MC/MCInst.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -27,8 +25,6 @@ void MCInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const { assert(0 && "Target should implement this"); } -void MCInstPrinter::printAnnotations(const MCInst *MI, raw_ostream &OS) { - for (unsigned i = 0, e = MI->getNumAnnotations(); i != e; ++i) { - OS << MI->getAnnotation(i) << "\n"; - } +void MCInstPrinter::printAnnotation(raw_ostream &OS, StringRef Annot) { + if (!Annot.empty()) OS << Annot << "\n"; }