hanchenye-llvm-project/lld/Common
Rafael Espindola a4884cc38f Try harder to delete the temporary file.
It is really hard to cover restarts in a debugger, SIGKILL or power
failures. I will try to handle them in a followup patch, but it will
not support all the systems lld has to run on.

RemoveFileOnSignal takes care of crashes.

So what is left is making sure all regular exits delete the file. This
patch does that by moving the buffer to error handling. That is a bit
of a hack, but seemed better than to generalize it to take a callback on
construction.

I will implement this on COFF on the next patch.

llvm-svn: 318060
2017-11-13 18:06:43 +00:00
..
CMakeLists.txt [lld] unified COFF and ELF error handling on new Common/ErrorHandler 2017-10-25 22:28:38 +00:00
ErrorHandler.cpp Try harder to delete the temporary file. 2017-11-13 18:06:43 +00:00
Reproduce.cpp
TargetOptionsCommandFlags.cpp
Threads.cpp Delete dead code. 2017-11-07 23:12:41 +00:00
Version.cpp