[llvm-commits] CVS: llvm/include/Support/FileUtilities.h

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 18 14:48:52 PST 2004


Changes in directory llvm/include/Support:

FileUtilities.h updated: 1.15 -> 1.16

---
Log message:

Change the order of the arguments to the ctor, allowing us to make the boolean default to true


---
Diffs of the changes:  (+3 -3)

Index: llvm/include/Support/FileUtilities.h
diff -u llvm/include/Support/FileUtilities.h:1.15 llvm/include/Support/FileUtilities.h:1.16
--- llvm/include/Support/FileUtilities.h:1.15	Wed Feb 18 11:16:17 2004
+++ llvm/include/Support/FileUtilities.h	Wed Feb 18 14:20:52 2004
@@ -137,11 +137,11 @@
   /// specified (if deleteIt is true).
   ///
   class FileRemover {
-    bool DeleteIt; 
     std::string Filename;
+    bool DeleteIt;
   public:
-    FileRemover(bool deleteIt, const std::string &filename)
-      : DeleteIt(deleteIt), Filename(filename) {}
+    FileRemover(const std::string &filename, bool deleteIt = true)
+      : Filename(filename), DeleteIt(deleteIt) {}
     
     ~FileRemover() {
       if (DeleteIt) removeFile(Filename);





More information about the llvm-commits mailing list