mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
Simplify some printing code by combining new lines onto previous strings. Don't work so hard not to print a comma on the last entry of an array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
684de8845e
commit
13154acf19
@ -633,7 +633,7 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
|
||||
i++;
|
||||
|
||||
for (unsigned index = 0; index < NumInstructions; ++index) {
|
||||
o.indent(i * 2) << "{ /* " << index << " */" << "\n";
|
||||
o.indent(i * 2) << "{ /* " << index << " */\n";
|
||||
i++;
|
||||
|
||||
OperandListTy OperandList;
|
||||
@ -647,16 +647,10 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
|
||||
}
|
||||
o.indent(i * 2) << (OperandSets[OperandList] - 1) << ",\n";
|
||||
|
||||
o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */";
|
||||
o << "\n";
|
||||
o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */\n";
|
||||
|
||||
i--;
|
||||
o.indent(i * 2) << "}";
|
||||
|
||||
if (index + 1 < NumInstructions)
|
||||
o << ",";
|
||||
|
||||
o << "\n";
|
||||
o.indent(i * 2) << "},\n";
|
||||
}
|
||||
|
||||
i--;
|
||||
|
Loading…
Reference in New Issue
Block a user