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 | 317eaf19937813d630166bfec7b933a98ea89aa5 (patch) | |
tree | 32ad1598b803064d80b4277c2791ac76808cdb87 /lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp | |
parent | eeef9e81802e7753236ed2087c6d7e9bcf0190cf (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp')
-rw-r--r-- | lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp b/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp index 8ff3ac89e4..f9ab5aeee1 100644 --- a/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp +++ b/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp @@ -38,7 +38,7 @@ void X86IntelInstPrinter::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); } } |