From a38a80108bc7c6d00fa8c1047ea507b5149b3cf8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 28 May 2017 18:24:39 +0000 Subject: [PATCH] [TableGen][X86] Improve formatting of the fold table output by indenting the body of the table and adding blank lines between tables. NFC llvm-svn: 304098 --- llvm/utils/TableGen/X86FoldTablesEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index b3be593..1f3665c 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -215,11 +215,11 @@ private: // X86MemoryFoldTableEntry. void printTable(const FoldTable &Table, std::string TableName, raw_ostream &OS) { - OS << "static const X86MemoryFoldTableEntry MemoryFold" << TableName + OS << "\nstatic const X86MemoryFoldTableEntry MemoryFold" << TableName << "[] = {\n"; for (const X86FoldTableEntry &E : Table) - OS << E; + OS.indent(2) << E; OS << "};\n"; } -- 2.7.4