projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92f5fcc
)
Give FileRemover a default constructor to allow FileRemovers to be created
author
Dan Gohman
<gohman@apple.com>
Sat, 27 Mar 2010 16:39:56 +0000
(16:39 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 27 Mar 2010 16:39:56 +0000
(16:39 +0000)
and initialized separately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99717
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/FileUtilities.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/FileUtilities.h
b/include/llvm/Support/FileUtilities.h
index cc8f95372b1198fd69721b2488351af37ca06bba..b535209d36cd5b3460ef0d96aee45a134b353d02 100644
(file)
--- 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) {}