mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user