summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2017-03-31 12:08:45 +0000
committerYaron Keren <yaron.keren@gmail.com>2017-03-31 12:08:45 +0000
commit80745c52bc13ea9ec5801c35da66c6e48dbd68b0 (patch)
tree2842e6fda9bed4e6fd1f31bc92c31354fdb4f7c4 /llvm/lib/Support/raw_ostream.cpp
parent61dc7c0790be3ffc8d9afbaa3495ff77eb6f61e3 (diff)
downloadbcm5719-llvm-80745c52bc13ea9ec5801c35da66c6e48dbd68b0.tar.gz
bcm5719-llvm-80745c52bc13ea9ec5801c35da66c6e48dbd68b0.zip
Update comment for r299098 per feedback from James Henderson.
llvm-svn: 299207
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index d804a006824..1abc8ed8683 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -465,8 +465,7 @@ void format_object_base::home() {
static int getFD(StringRef Filename, std::error_code &EC,
sys::fs::OpenFlags Flags) {
// Handle "-" as stdout. Note that when we do this, we consider ourself
- // the owner of stdout. This means that we can do things like close the
- // file descriptor when we're done and set the "binary" flag globally.
+ // the owner of stdout and may set the "binary" flag globally based on Flags.
if (Filename == "-") {
EC = std::error_code();
// If user requested binary then put stdout into binary mode if
OpenPOWER on IntegriCloud