Give FileRemover a default constructor to allow FileRemovers to be created

and initialized separately.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-03-27 16:39:56 +00:00
parent 92f5fccb4d
commit a5d0501b59

View File

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