[llvm] Unittests and usability for BitstreamWriter incremental flushing (PR #92983)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 10:50:01 PDT 2024


================
@@ -93,31 +93,39 @@ class BitstreamWriter {
 
   /// If the related file stream supports reading, seeking and writing, flush
   /// the buffer if its size is above a threshold.
-  void FlushToFile() {
-    if (!FS)
+  void FlushToFile(bool OnClosing = false) {
----------------
teresajohnson wrote:

Suggest adding a brief comment about new parameter meaning/behavior.

https://github.com/llvm/llvm-project/pull/92983


More information about the llvm-commits mailing list