projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Give FileRemover a default constructor to allow FileRemovers to be created
[oota-llvm.git]
/
include
/
llvm
/
Support
/
FileUtilities.h
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) {}