This function registers signal handlers to ensure that if a signal gets delivered that the named file is removed. Remove a file if a fatal signal occurs.
Declared in <llvm/Support/Signals.h>
bool
RemoveFileOnSignal(
StringRef Filename,
std::string* ErrMsg = nullptr);
True if registration failed; false on success.
| Name | Description |
|---|---|
| Filename | Path of the file to remove if a fatal signal occurs. |
| ErrMsg | Optional string populated with an error message on failure. |