mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
change a ton of code to not implicitly use the "O" raw_ostream
member of AsmPrinter. Instead, pass it in explicitly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100306 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -248,7 +248,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
||||
"/// printInstruction - This method is automatically generated by tablegen\n"
|
||||
"/// from the instruction set description.\n"
|
||||
"void " << Target.getName() << ClassName
|
||||
<< "::printInstruction(const MachineInstr *MI) {\n";
|
||||
<< "::printInstruction(const MachineInstr *MI, raw_ostream &O) {\n";
|
||||
|
||||
std::vector<AsmWriterInst> Instructions;
|
||||
|
||||
|
@@ -38,6 +38,7 @@ std::string AsmWriterOperand::getCode() const {
|
||||
std::string Result = Str + "(MI";
|
||||
if (MIOpNo != ~0U)
|
||||
Result += ", " + utostr(MIOpNo);
|
||||
Result += ", O";
|
||||
if (!MiModifier.empty())
|
||||
Result += ", \"" + MiModifier + '"';
|
||||
return Result + "); ";
|
||||
|
Reference in New Issue
Block a user