]> granicus.if.org Git - clang/commitdiff
Use the sys::RemoveFileOnSignal that takes a StringRef.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 13 Jun 2013 21:02:40 +0000 (21:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 13 Jun 2013 21:02:40 +0000 (21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183944 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInstance.cpp
tools/driver/cc1as_main.cpp

index 648466d4dc52be05599c2208cac2ab2254e03b6c..c2f03970be3fdb8e304d2a8357923ac6794717b3 100644 (file)
@@ -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;
index 46ba2463f11384c4dbf30095f4aa16e406844ed6..47b4c02560ebcfedf38819cee0543f49986922a7 100644 (file)
@@ -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 =