LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::FileRemover Class Reference

#include <FileUtilities.h>

Collaboration diagram for llvm::FileRemover:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FileRemover (const std::string &filename, bool deleteIt=true)
 ~FileRemover ()
void releaseFile ()

Detailed Description

FileRemover - This class is a simple object meant to be stack allocated. If an exception is thrown from a region, the object removes the filename specified (if deleteIt is true).

Definition at line 153 of file FileUtilities.h.


Constructor & Destructor Documentation

llvm::FileRemover::FileRemover const std::string &  filename,
bool  deleteIt = true
[inline]
 

Definition at line 157 of file FileUtilities.h.

llvm::FileRemover::~FileRemover  )  [inline]
 

Definition at line 160 of file FileUtilities.h.

References llvm::removeFile().


Member Function Documentation

void llvm::FileRemover::releaseFile  )  [inline]
 

releaseFile - Take ownership of the file away from the FileRemover so it will not be removed when the object is destroyed.

Definition at line 166 of file FileUtilities.h.

Referenced by llvm::CopyFile().


The documentation for this class was generated from the following file: