From dc4a7293a8e760fdec4b134839b2e9cc57119a2f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 13 Nov 2022 00:48:47 -0800 Subject: [PATCH] [TableGen] Remove unneeded flush and add missing newline --- llvm/utils/TableGen/DecoderEmitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp index f46cb4c..fe53350 100644 --- a/llvm/utils/TableGen/DecoderEmitter.cpp +++ b/llvm/utils/TableGen/DecoderEmitter.cpp @@ -2528,7 +2528,7 @@ static void emitDecodeInstruction(formatted_raw_ostream &OS, // DecodeStatus'.) static void emitCheck(formatted_raw_ostream &OS) { OS << "static bool Check(DecodeStatus &Out, DecodeStatus In) {\n" - << " Out = static_cast(Out & In);" + << " Out = static_cast(Out & In);\n" << " return Out != MCDisassembler::Fail;\n" << "}\n\n"; } @@ -2685,7 +2685,6 @@ void DecoderEmitter::run(raw_ostream &o) { // Print the table to the output stream. emitTable(OS, TableInfo.Table, 0, FC.getBitWidth(), Opc.first.first); - OS.flush(); } // For variable instruction, we emit a instruction length table -- 2.7.4