Give FileRemover a default constructor to allow FileRemovers to be created

and initialized separately.

llvm-svn: 99717
This commit is contained in:
Dan Gohman 2010-03-27 16:39:56 +00:00
parent 99ac24d1e3
commit 8c172a51d8
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ namespace llvm {
sys::Path Filename;
bool DeleteIt;
public:
FileRemover() : DeleteIt(false) {}
explicit FileRemover(const sys::Path &filename, bool deleteIt = true)
: Filename(filename), DeleteIt(deleteIt) {}