aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.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
commit317eaf19937813d630166bfec7b933a98ea89aa5 (patch)
tree32ad1598b803064d80b4277c2791ac76808cdb87 /lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
parenteeef9e81802e7753236ed2087c6d7e9bcf0190cf (diff)
downloadexternal_llvm-317eaf19937813d630166bfec7b933a98ea89aa5.zip
external_llvm-317eaf19937813d630166bfec7b933a98ea89aa5.tar.gz
external_llvm-317eaf19937813d630166bfec7b933a98ea89aa5.tar.bz2
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/PowerPC/InstPrinter/PPCInstPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
index c22b13a..ac5eb77 100644
--- a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
+++ b/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);
}