[llvm-commits] [llvm] r99717 - /llvm/trunk/include/llvm/Support/FileUtilities.h

Dan Gohman gohman at apple.com
Sat Mar 27 09:39:56 PDT 2010


Author: djg
Date: Sat Mar 27 11:39:56 2010
New Revision: 99717

URL: http://llvm.org/viewvc/llvm-project?rev=99717&view=rev
Log:
Give FileRemover a default constructor to allow FileRemovers to be created
and initialized separately.

Modified:
    llvm/trunk/include/llvm/Support/FileUtilities.h

Modified: llvm/trunk/include/llvm/Support/FileUtilities.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileUtilities.h?rev=99717&r1=99716&r2=99717&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileUtilities.h (original)
+++ llvm/trunk/include/llvm/Support/FileUtilities.h Sat Mar 27 11:39:56 2010
@@ -40,6 +40,8 @@
     sys::Path Filename;
     bool DeleteIt;
   public:
+    FileRemover() : DeleteIt(false) {}
+
     explicit FileRemover(const sys::Path &filename, bool deleteIt = true)
       : Filename(filename), DeleteIt(deleteIt) {}
 





More information about the llvm-commits mailing list