r183944 - Use the sys::RemoveFileOnSignal that takes a StringRef.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jun 13 14:02:40 PDT 2013
Author: rafael
Date: Thu Jun 13 16:02:40 2013
New Revision: 183944
URL: http://llvm.org/viewvc/llvm-project?rev=183944&view=rev
Log:
Use the sys::RemoveFileOnSignal that takes a StringRef.
Modified:
cfe/trunk/lib/Frontend/CompilerInstance.cpp
cfe/trunk/tools/driver/cc1as_main.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=183944&r1=183943&r2=183944&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Thu Jun 13 16:02:40 2013
@@ -560,7 +560,7 @@ CompilerInstance::createOutputFile(Strin
// Make sure the out stream file gets removed if we crash.
if (RemoveFileOnSignal)
- llvm::sys::RemoveFileOnSignal(llvm::sys::Path(OSFile));
+ llvm::sys::RemoveFileOnSignal(OSFile);
if (ResultPathName)
*ResultPathName = OutFile;
Modified: cfe/trunk/tools/driver/cc1as_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=183944&r1=183943&r2=183944&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Thu Jun 13 16:02:40 2013
@@ -245,7 +245,7 @@ static formatted_raw_ostream *GetOutputS
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT.
if (Opts.OutputPath != "-")
- sys::RemoveFileOnSignal(sys::Path(Opts.OutputPath));
+ sys::RemoveFileOnSignal(Opts.OutputPath);
std::string Error;
raw_fd_ostream *Out =
More information about the cfe-commits
mailing list