diff options
author | Fangrui Song <i@maskray.me> | 2022-11-13 11:48:47 +0300 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-11-13 11:48:47 +0300 |
commit | dc4a7293a8e760fdec4b134839b2e9cc57119a2f (patch) | |
tree | 453ebccf7936df35eb5fc681f28496d93fcfc9f0 | |
parent | f6f1fd443f48f417de9dfe23353055f1b20d87ef (diff) |
[TableGen] Remove unneeded flush and add missing newline
-rw-r--r-- | llvm/utils/TableGen/DecoderEmitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp index f46cb4c77f6d..fe53350be5c2 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<DecodeStatus>(Out & In);" + << " Out = static_cast<DecodeStatus>(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 |