From: Rafael Espindola Date: Thu, 13 Jun 2013 21:02:40 +0000 (+0000) Subject: Use the sys::RemoveFileOnSignal that takes a StringRef. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f2e23b25d9be365266be43ffa1cf6f850b6027e;p=clang Use the sys::RemoveFileOnSignal that takes a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183944 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 648466d4dc..c2f03970be 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -560,7 +560,7 @@ CompilerInstance::createOutputFile(StringRef OutputPath, // 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; diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 46ba2463f1..47b4c02560 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -245,7 +245,7 @@ static formatted_raw_ostream *GetOutputStream(AssemblerInvocation &Opts, // 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 =