diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-04 05:29:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-04 05:29:35 +0000 |
commit | 3bb09768cb6dbd5423164e78ac5b909be4ceef62 (patch) | |
tree | 7a72766a1676bc7aab23216f01e1fd35aa351142 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 787253819a77ba338f7a03fc3c27a20a0926c864 (diff) | |
download | bcm5719-llvm-3bb09768cb6dbd5423164e78ac5b909be4ceef62.tar.gz bcm5719-llvm-3bb09768cb6dbd5423164e78ac5b909be4ceef62.zip |
fix PrintAsmOperand and PrintAsmMemoryOperand to pass down
raw_ostream to print to.
llvm-svn: 100313
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 92946470e36..ba32884885c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1566,10 +1566,11 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const { AsmPrinter *AP = const_cast<AsmPrinter*>(this); if ((OpFlags & 7) == 4) { Error = AP->PrintAsmMemoryOperand(MI, OpNo, AsmPrinterVariant, - Modifier[0] ? Modifier : 0); + Modifier[0] ? Modifier : 0, + OS); } else { Error = AP->PrintAsmOperand(MI, OpNo, AsmPrinterVariant, - Modifier[0] ? Modifier : 0); + Modifier[0] ? Modifier : 0, OS); } } } @@ -1633,14 +1634,15 @@ void AsmPrinter::printLabelInst(const MachineInstr *MI) const { /// instruction, using the specified assembler variant. Targets should /// override this to format as appropriate. bool AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, - unsigned AsmVariant, const char *ExtraCode) { + unsigned AsmVariant, const char *ExtraCode, + raw_ostream &O) { // Target doesn't support this yet! return true; } bool AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, - const char *ExtraCode) { + const char *ExtraCode, raw_ostream &O) { // Target doesn't support this yet! return true; } |