diff options
author | Owen Anderson <resistor@mac.com> | 2011-09-21 00:25:23 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-09-21 00:25:23 +0000 |
commit | 69fa8ffeef2a3c68cc7d6edc3cfd862b74501af5 (patch) | |
tree | d1f32ee4efb88c65e686cca1349e5a9b19e62eab /llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | |
parent | 155137bd102c2f769c05f17715265f82b611a65c (diff) | |
download | bcm5719-llvm-69fa8ffeef2a3c68cc7d6edc3cfd862b74501af5.tar.gz bcm5719-llvm-69fa8ffeef2a3c68cc7d6edc3cfd862b74501af5.zip |
In the disassembler C API, be careful not to confuse the comment streamer that the disassembler outputs annotations on with the streamer that the InstPrinter will print them on.
llvm-svn: 140217
Diffstat (limited to 'llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp index c22b13a447b..ac5eb77ead4 100644 --- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp @@ -52,7 +52,7 @@ void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O, printOperand(MI, 1, O); O << ", " << (unsigned int)SH; - if (CommentStream) printAnnotation(*CommentStream, Annot); + if (CommentStream) printAnnotation(O, Annot); return; } } @@ -63,7 +63,7 @@ void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O, printOperand(MI, 0, O); O << ", "; printOperand(MI, 1, O); - if (CommentStream) printAnnotation(*CommentStream, Annot); + if (CommentStream) printAnnotation(O, Annot); return; } @@ -77,13 +77,13 @@ void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O, O << ", "; printOperand(MI, 1, O); O << ", " << (unsigned int)SH; - if (CommentStream) printAnnotation(*CommentStream, Annot); + if (CommentStream) printAnnotation(O, Annot); return; } } printInstruction(MI, O); - if (CommentStream) printAnnotation(*CommentStream, Annot); + if (CommentStream) printAnnotation(O, Annot); } |