From a5d0501b5935010c5db81e758baded607a861b30 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 27 Mar 2010 16:39:56 +0000 Subject: [PATCH] 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 --- include/llvm/Support/FileUtilities.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index cc8f95372b1..b535209d36c 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) {} -- 2.34.1