llvm::CleanupInstaller

Manages cleanup of a temporary tool output file.

Synopsis

Declared in <llvm/Support/ToolOutputFile.h>

class CleanupInstaller;

Description

Registers a signal handler so the file is deleted if the process is killed, and deletes the file in its destructor unless Keep is set.

Member Functions

NameDescription
CleanupInstaller [constructor]Construct a cleanup installer for Filename.
~CleanupInstaller [destructor]Destroy the installer, deleting the file unless Keep is set.
getFilename Return the name of the file being cleaned up.

Data Members

NameDescription
Filename The name of the file.
Keep The flag which indicates whether we should not delete the file.