diff options
author | Evandro Menezes <e.menezes@samsung.com> | 2019-06-26 15:11:31 +0000 |
---|---|---|
committer | Evandro Menezes <e.menezes@samsung.com> | 2019-06-26 15:11:31 +0000 |
commit | 42e13c83284e94607b3a5751598f2c1661447356 (patch) | |
tree | a1091deb6787eb037669fe6259b85fece89f671c /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 83b1580e1b14fc719e10c5ac885a4c993be3fff6 (diff) | |
download | bcm5719-llvm-42e13c83284e94607b3a5751598f2c1661447356.tar.gz bcm5719-llvm-42e13c83284e94607b3a5751598f2c1661447356.zip |
[CodeGen] Improve formatting of jump tables (NFC)
Split jump tables into individual lines and fix spacing.
llvm-svn: 364436
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index c2f1c3c6f62..4394ea29df6 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -912,9 +912,11 @@ void MachineJumpTableInfo::print(raw_ostream &OS) const { OS << "Jump Tables:\n"; for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) { - OS << printJumpTableEntryReference(i) << ": "; + OS << printJumpTableEntryReference(i) << ':'; for (unsigned j = 0, f = JumpTables[i].MBBs.size(); j != f; ++j) OS << ' ' << printMBBReference(*JumpTables[i].MBBs[j]); + if (i != e) + OS << '\n'; } OS << '\n'; |