Rafael Espindola
e9e9694283
Don't repeat names in comments. NFC.
...
llvm-svn: 234405
2015-04-08 13:52:09 +00:00
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
c3ff946af1
Don't make F_None the default.
...
This will make it easier to switch the default to being binary files.
llvm-svn: 202042
2014-02-24 15:07:20 +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
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
Jakub Staszak
f1ea1a7f37
Fix include guards so they exactly match file names.
...
llvm-svn: 172025
2013-01-10 00:45:19 +00:00
Dan Gohman
6645ce3f75
Move tool_output_file into its own file.
...
llvm-svn: 115973
2010-10-07 20:32:40 +00:00