diff options
author | Youngsuk Kim <youngsuk.kim@hpe.com> | 2024-09-20 12:02:24 -0500 |
---|---|---|
committer | Youngsuk Kim <youngsuk.kim@hpe.com> | 2024-09-20 12:19:59 -0500 |
commit | d31e314131b17b0a802a80593a33cb11213c60d1 (patch) | |
tree | 3c394f629c57b2bc115651c52dd8c10cc3d57a40 /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | efb583178d74b2174e8b9660b67ba7295527b09f (diff) | |
download | llvm-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.cpp | 1 |
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); |