Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-11-13 11:48:47 +0300
committerFangrui Song <i@maskray.me>2022-11-13 11:48:47 +0300
commitdc4a7293a8e760fdec4b134839b2e9cc57119a2f (patch)
tree453ebccf7936df35eb5fc681f28496d93fcfc9f0
parentf6f1fd443f48f417de9dfe23353055f1b20d87ef (diff)
[TableGen] Remove unneeded flush and add missing newline
-rw-r--r--llvm/utils/TableGen/DecoderEmitter.cpp3
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