File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -540,14 +540,16 @@ bool raw_fd_ostream::is_displayed() const {
540
540
}
541
541
542
542
// ===----------------------------------------------------------------------===//
543
- // raw_stdout/err_ostream
543
+ // outs(), errs(), nulls()
544
544
// ===----------------------------------------------------------------------===//
545
545
546
546
// / outs() - This returns a reference to a raw_ostream for standard output.
547
547
// / Use it like: outs() << "foo" << "bar";
548
548
raw_ostream &llvm::outs () {
549
549
// Set buffer settings to model stdout behavior.
550
- static raw_fd_ostream S (STDOUT_FILENO, false );
550
+ // Delete the file descriptor when the program exists, forcing error
551
+ // detection. If you don't want this behavior, don't use outs().
552
+ static raw_fd_ostream S (STDOUT_FILENO, true );
551
553
return S;
552
554
}
553
555
You can’t perform that action at this time.
0 commit comments