diff options
author | Rui Ueyama <ruiu@google.com> | 2019-01-22 18:44:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2019-01-22 18:44:04 +0000 |
commit | 4063cfc7451fb02b52b27e6298703743c7661cdd (patch) | |
tree | 7f82abee119fc514f7ad7ed8f8ca0f46b25349ea /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | a5840c3c39baec957c673cf5e0b257f923480ff3 (diff) | |
download | bcm5719-llvm-4063cfc7451fb02b52b27e6298703743c7661cdd.tar.gz bcm5719-llvm-4063cfc7451fb02b52b27e6298703743c7661cdd.zip |
FileOutputBuffer: Handle "-" as stdout.
I was honestly a bit surprised that we didn't do this before. This
patch is to handle "-" as the stdout so that if you pass `-o -` to
lld, for example, it writes an output to stdout instead of file `-`.
I thought that we might want to handle this at a higher level than
FileOutputBuffer, because if we land this patch, we can no longer
create a file whose name is `-` (there's a workaround though; you can
pass `./-` instead of `-`). However, because raw_fd_ostream already
handles `-` as a special file name, I think it's okay and actually
consistent to handle `-` as a special name in FileOutputBuffer.
Differential Revision: https://reviews.llvm.org/D56940
llvm-svn: 351852
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions