From: Craig Topper Date: Sun, 28 May 2017 18:24:39 +0000 (+0000) Subject: [TableGen][X86] Improve formatting of the fold table output by indenting the body... X-Git-Tag: llvmorg-5.0.0-rc1~4071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a38a80108bc7c6d00fa8c1047ea507b5149b3cf8;p=platform%2Fupstream%2Fllvm.git [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 --- 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"; }