diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-17 18:05:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-17 18:05:35 +0000 |
commit | 40c908bfad51f085bc418fa11ef04ae2bdb08ece (patch) | |
tree | 68416a6490e26ab7e45c237a20158439da8bc9c0 /llvm/lib/Support/ToolOutputFile.cpp | |
parent | d55eadf0be31a8006081814edf1217ce49461bc2 (diff) | |
download | bcm5719-llvm-40c908bfad51f085bc418fa11ef04ae2bdb08ece.tar.gz bcm5719-llvm-40c908bfad51f085bc418fa11ef04ae2bdb08ece.zip |
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
Diffstat (limited to 'llvm/lib/Support/ToolOutputFile.cpp')
-rw-r--r-- | llvm/lib/Support/ToolOutputFile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/ToolOutputFile.cpp b/llvm/lib/Support/ToolOutputFile.cpp index 09fb6ee6054..824e0a73d28 100644 --- a/llvm/lib/Support/ToolOutputFile.cpp +++ b/llvm/lib/Support/ToolOutputFile.cpp @@ -44,3 +44,7 @@ tool_output_file::tool_output_file(const char *filename, std::string &ErrorInfo, if (!ErrorInfo.empty()) Installer.Keep = true; } + +tool_output_file::tool_output_file(const char *Filename, int FD) + : Installer(Filename), OS(FD, true) { +} |