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
This commit is contained in:
Rafael Espindola
2013-06-17 18:05:35 +00:00
parent d55eadf0be
commit 40c908bfad
4 changed files with 27 additions and 17 deletions

View File

@@ -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) {
}