[PATCH] Disable buffering for raw_null_ostream()

Mehdi AMINI mehdi.amini at apple.com
Wed Jul 1 15:22:47 PDT 2015


Split refactoring in http://reviews.llvm.org/D10885, leaving only the functional change for nulls() here.


http://reviews.llvm.org/D10861

Files:
  include/llvm/Support/raw_ostream.h

Index: include/llvm/Support/raw_ostream.h
===================================================================
--- include/llvm/Support/raw_ostream.h
+++ include/llvm/Support/raw_ostream.h
@@ -530,7 +530,7 @@
   uint64_t current_pos() const override;
 
 public:
-  explicit raw_null_ostream() {}
+  explicit raw_null_ostream() : raw_pwrite_stream(StreamMode::Unbuffered) {}
   ~raw_null_ostream() override;
 };

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10861.28906.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150701/15ffbff9/attachment.bin>


More information about the llvm-commits mailing list