aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorYoungsuk Kim <youngsuk.kim@hpe.com>2024-09-20 12:02:24 -0500
committerYoungsuk Kim <youngsuk.kim@hpe.com>2024-09-20 12:19:59 -0500
commitd31e314131b17b0a802a80593a33cb11213c60d1 (patch)
tree3c394f629c57b2bc115651c52dd8c10cc3d57a40 /llvm/lib/CodeGen/MIRPrinter.cpp
parentefb583178d74b2174e8b9660b67ba7295527b09f (diff)
downloadllvm-d31e314131b17b0a802a80593a33cb11213c60d1.zip
llvm-d31e314131b17b0a802a80593a33cb11213c60d1.tar.gz
llvm-d31e314131b17b0a802a80593a33cb11213c60d1.tar.bz2
[llvm] Don't call raw_string_ostream::flush() (NFC)
Don't call raw_string_ostream::flush(), which is essentially a no-op. As specified in the docs, raw_string_ostream is always unbuffered. ( 65b13610a5226b84889b923bae884ba395ad084d for further reference )
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index 6e23969..7de68b1 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -256,7 +256,6 @@ void MIRPrinter::print(const MachineFunction &MF) {
.print(MBB);
IsNewlineNeeded = true;
}
- StrOS.flush();
// Convert machine metadata collected during the print of the machine
// function.
convertMachineMetadataNodes(YamlMF, MF, MST);