diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 21:16:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 21:16:58 +0000 |
commit | b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157 (patch) | |
tree | 3d4507bdbbf633130caf7e5ee43f6a4cb3f4a49e /tools | |
parent | 6c3df8e93ece684f54a07d553085824f4e66984a (diff) | |
download | llvm-b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157.tar.gz llvm-b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157.tar.bz2 llvm-b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157.tar.xz |
Don't use PathV1.h in Signals.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 3 | ||||
-rw-r--r-- | tools/llvm-link/llvm-link.cpp | 1 | ||||
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index bb27767fa4..7f6432fbd7 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -26,6 +26,7 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/Signals.h" #include "llvm/Support/ToolOutputFile.h" #include "llvm/Transforms/IPO.h" @@ -371,7 +372,7 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const EmitProgressBitcode(M, "basicblockextractfail", true); return 0; } - sys::RemoveFileOnSignal(uniqueFilename); + sys::RemoveFileOnSignal(uniqueFilename.str()); std::string ErrorInfo; tool_output_file BlocksToNotExtractFile(uniqueFilename.c_str(), ErrorInfo); diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 01a61c672c..1155f39ec6 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -21,6 +21,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Signals.h" #include "llvm/Support/SourceMgr.h" diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index 465ccb4f2c..5383262847 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -33,6 +33,7 @@ #include "llvm/Support/FormattedStream.h" #include "llvm/Support/Host.h" #include "llvm/Support/MemoryBuffer.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/Signals.h" #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetSelect.h" @@ -164,7 +165,7 @@ bool LTOCodeGenerator::compile_to_file(const char** name, std::string& errMsg) { uniqueObjPath.eraseFromDisk(); return true; } - sys::RemoveFileOnSignal(uniqueObjPath); + sys::RemoveFileOnSignal(uniqueObjPath.str()); // generate object file bool genResult = false; |