19 ToolOutputFile::CleanupInstaller::CleanupInstaller(
StringRef Filename)
20 : Filename(Filename), Keep(
false) {
26 ToolOutputFile::CleanupInstaller::~CleanupInstaller() {
28 if (!Keep && Filename !=
"-")
39 : Installer(Filename), OS(Filename, EC, Flags) {
42 Installer.Keep =
true;
46 : Installer(Filename), OS(FD,
true) {}
This class represents lattice values for constants.
std::error_code remove(const Twine &path, bool IgnoreNonExisting=true)
Remove path.
block Block Frequency true
void DontRemoveFileOnSignal(StringRef Filename)
This function removes a file from the list of files to be removed on signal delivery.
bool RemoveFileOnSignal(StringRef Filename, std::string *ErrMsg=nullptr)
This function registers signal handlers to ensure that if a signal gets delivered that the named file...
StringRef - Represent a constant reference to a string, i.e.