mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-25 23:06:41 +00:00
[TableGen] Improve readability of generated code (NFC)
Improve the readability of the generated code for `MCOpcodeSwitchStatement`. llvm-svn: 347707
This commit is contained in:
parent
a13afb10aa
commit
9f0644167f
@ -204,7 +204,7 @@ void PredicateExpander::expandOpcodeSwitchCase(raw_ostream &OS,
|
||||
for (const Record *Opcode : Opcodes) {
|
||||
OS.indent(getIndentLevel() * 2);
|
||||
OS << "case " << Opcode->getValueAsString("Namespace")
|
||||
<< "::" << Opcode->getName() << " :\n";
|
||||
<< "::" << Opcode->getName() << ":\n";
|
||||
}
|
||||
|
||||
increaseIndentLevel();
|
||||
@ -227,7 +227,7 @@ void PredicateExpander::expandOpcodeSwitchStatement(raw_ostream &OS,
|
||||
|
||||
// Expand the default case.
|
||||
SS.indent(getIndentLevel() * 2);
|
||||
SS << "default :\n";
|
||||
SS << "default:\n";
|
||||
|
||||
increaseIndentLevel();
|
||||
SS.indent(getIndentLevel() * 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user