summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/PredicateExpander.cpp
diff options
context:
space:
mode:
authorEvandro Menezes <e.menezes@samsung.com>2018-11-27 20:59:01 +0000
committerEvandro Menezes <e.menezes@samsung.com>2018-11-27 20:59:01 +0000
commit1ca239e05eb05e129e1609d9e2d777a4244c0ca2 (patch)
tree4b61de341b89d93d5e66e51976bdaee0f4a8b33b /llvm/utils/TableGen/PredicateExpander.cpp
parent9ef79c884a28d2f09e9eb63729e9133d86901428 (diff)
downloadbcm5719-llvm-1ca239e05eb05e129e1609d9e2d777a4244c0ca2.tar.gz
bcm5719-llvm-1ca239e05eb05e129e1609d9e2d777a4244c0ca2.zip
[TableGen] Improve readability of generated code (NFC)
Improve the readability of the generated code for `MCOpcodeSwitchStatement`. llvm-svn: 347707
Diffstat (limited to 'llvm/utils/TableGen/PredicateExpander.cpp')
-rw-r--r--llvm/utils/TableGen/PredicateExpander.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/PredicateExpander.cpp b/llvm/utils/TableGen/PredicateExpander.cpp
index ad7bf60caab..4af544e6e25 100644
--- a/llvm/utils/TableGen/PredicateExpander.cpp
+++ b/llvm/utils/TableGen/PredicateExpander.cpp
@@ -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);
OpenPOWER on IntegriCloud