Rafael Espindola
1d5713d9bf
Modernize raw_fd_ostream's constructor a bit.
...
Take a StringRef instead of a "const char *".
Take a "std::error_code &" instead of a "std::string &" for error.
A create static method would be even better, but this patch is already a bit too
big.
llvm-svn: 216393
2014-08-25 18:16:47 +00:00
Rafael Espindola
13382e2639
Use the simpler version of sys::fs::remove when possible.
...
llvm-svn: 198958
2014-01-10 21:40:29 +00:00
Rafael Espindola
2a9326a78f
Add a wrapper for open.
...
This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).
llvm-svn: 186447
2013-07-16 19:44:17 +00:00
Rafael Espindola
344b614949
Reapply r183985 now that the missing check was added to PathV2.
...
llvm-svn: 184120
2013-06-17 20:37:56 +00:00
Rafael Espindola
8a9592657a
Revert "Remove a use of PathV1.h."
...
This reverts commit r183985.
We were missing the checks for not deleting things like /dev/null.
llvm-svn: 184111
2013-06-17 19:54:17 +00:00
Rafael Espindola
2b411d1243
Don't use PathV1.h in LTOCodeGenerator.cpp
...
This patch also adds a simpler version of sys::fs::remove and a tool_output_file
constructor for when we already have an open file.
llvm-svn: 184095
2013-06-17 18:05:35 +00:00
Rafael Espindola
b3ffa88108
Remove a use of PathV1.h.
...
llvm-svn: 183985
2013-06-14 16:20:18 +00:00
Rafael Espindola
6c0ca078e2
Don't use PathV1.h in Signals.h.
...
llvm-svn: 183947
2013-06-13 21:16:58 +00:00
Michael J. Spencer
d5ec932c3a
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
Dan Gohman
6645ce3f75
Move tool_output_file into its own file.
...
llvm-svn: 115973
2010-10-07 20:32:40 +00:00