diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-27 16:39:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-27 16:39:56 +0000 |
commit | a5d0501b5935010c5db81e758baded607a861b30 (patch) | |
tree | e4ef41eae55219984cb6d3ff80f99ac197743e4a /include/llvm/Support/FileUtilities.h | |
parent | 92f5fccb4d35b2dc775ee8f69d11d2b8b2df7e9d (diff) |
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
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 2 |
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) {} |