llvm.org GIT mirror llvm / ca91912
Don't register stdout to be deleted on a signal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111368 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
117117
118118 // Make sure that the Output file gets unlinked from the disk if we get a
119119 // SIGINT
120 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
120 if (OutputFilename != "-")
121 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
121122
122123 std::string ErrorInfo;
123124 raw_fd_ostream Out(OutputFilename.c_str(), ErrorInfo,