diff options
Diffstat (limited to 'lib/MC/MCInst.cpp')
-rw-r--r-- | lib/MC/MCInst.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp index 4cb628b395..ec97acc554 100644 --- a/lib/MC/MCInst.cpp +++ b/lib/MC/MCInst.cpp @@ -41,6 +41,16 @@ void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << " "; getOperand(i).print(OS, MAI); } + + if (getNumAnnotations()) { + OS << " # Annots: "; + for (unsigned i = 0, e = getNumAnnotations(); i != e; ++i) { + OS << " \""; + OS << getAnnotation(i); + OS << '"'; + } + } + OS << ">"; } @@ -57,6 +67,17 @@ void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI, OS << Separator; getOperand(i).print(OS, MAI); } + + if (getNumAnnotations()) { + OS << " # Annots: "; + for (unsigned i = 0, e = getNumAnnotations(); i != e; ++i) { + OS << Separator; + OS << '"'; + OS << getAnnotation(i); + OS << '"'; + } + } + OS << ">"; } |