forked from OSchip/llvm-project
Use the sys::RemoveFileOnSignal that takes a StringRef.
llvm-svn: 183944
This commit is contained in:
parent
da85674db5
commit
18556de316
|
@ -560,7 +560,7 @@ CompilerInstance::createOutputFile(StringRef OutputPath,
|
||||||
|
|
||||||
// Make sure the out stream file gets removed if we crash.
|
// Make sure the out stream file gets removed if we crash.
|
||||||
if (RemoveFileOnSignal)
|
if (RemoveFileOnSignal)
|
||||||
llvm::sys::RemoveFileOnSignal(llvm::sys::Path(OSFile));
|
llvm::sys::RemoveFileOnSignal(OSFile);
|
||||||
|
|
||||||
if (ResultPathName)
|
if (ResultPathName)
|
||||||
*ResultPathName = OutFile;
|
*ResultPathName = OutFile;
|
||||||
|
|
|
@ -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
|
// Make sure that the Out file gets unlinked from the disk if we get a
|
||||||
// SIGINT.
|
// SIGINT.
|
||||||
if (Opts.OutputPath != "-")
|
if (Opts.OutputPath != "-")
|
||||||
sys::RemoveFileOnSignal(sys::Path(Opts.OutputPath));
|
sys::RemoveFileOnSignal(Opts.OutputPath);
|
||||||
|
|
||||||
std::string Error;
|
std::string Error;
|
||||||
raw_fd_ostream *Out =
|
raw_fd_ostream *Out =
|
||||||
|
|
Loading…
Reference in New Issue