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 4651d3f3ef
commit d28d7ac049

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) {}