summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-27 16:39:56 +0000
committerDan Gohman <gohman@apple.com>2010-03-27 16:39:56 +0000
commita5d0501b5935010c5db81e758baded607a861b30 (patch)
treee4ef41eae55219984cb6d3ff80f99ac197743e4a
parent92f5fccb4d35b2dc775ee8f69d11d2b8b2df7e9d (diff)
downloadllvm-a5d0501b5935010c5db81e758baded607a861b30.tar.gz
llvm-a5d0501b5935010c5db81e758baded607a861b30.tar.bz2
llvm-a5d0501b5935010c5db81e758baded607a861b30.tar.xz
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
-rw-r--r--include/llvm/Support/FileUtilities.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h
index cc8f95372b..b535209d36 100644
--- a/include/llvm/Support/FileUtilities.h
+++ b/include/llvm/Support/FileUtilities.h
@@ -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) {}