fix an ugly wart in the MCInstPrinter api where the

raw_ostream to print an instruction to had to be specified
at MCInstPrinter construction time instead of being able
to pick at each call to printInstruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-04-04 05:04:31 +00:00
parent 35c33bd772
commit d374087be5
18 changed files with 42 additions and 58 deletions

View File

@@ -98,7 +98,7 @@ static unsigned NextReg(unsigned Reg) {
}
}
void ARMInstPrinter::printInst(const MCInst *MI) {
void ARMInstPrinter::printInst(const MCInst *MI, raw_ostream &O) {
// Check for MOVs and print canonical forms, instead.
if (MI->getOpcode() == ARM::MOVs) {
const MCOperand &Dst = MI->getOperand(0);