summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-09-21 00:25:23 +0000
committerOwen Anderson <resistor@mac.com>2011-09-21 00:25:23 +0000
commit69fa8ffeef2a3c68cc7d6edc3cfd862b74501af5 (patch)
treed1f32ee4efb88c65e686cca1349e5a9b19e62eab /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
parent155137bd102c2f769c05f17715265f82b611a65c (diff)
downloadbcm5719-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/X86/InstPrinter/X86ATTInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
index 1fefd575117..029d491260f 100644
--- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
+++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
@@ -47,7 +47,7 @@ void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS,
// If verbose assembly is enabled, we can print some informative comments.
if (CommentStream) {
- printAnnotation(*CommentStream, Annot);
+ printAnnotation(OS, Annot);
EmitAnyX86InstComments(MI, *CommentStream, getRegisterName);
}
}
OpenPOWER on IntegriCloud