Changes in directory llvm/include/llvm/Support:

FileUtilities.h updated: 1.33 -> 1.34
---
Log message:

Modify Path::eraseFromDisk to not throw an exception.


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

 FileUtilities.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Support/FileUtilities.h
diff -u llvm/include/llvm/Support/FileUtilities.h:1.33 
llvm/include/llvm/Support/FileUtilities.h:1.34
--- llvm/include/llvm/Support/FileUtilities.h:1.33      Thu Jul  7 22:08:58 2005
+++ llvm/include/llvm/Support/FileUtilities.h   Fri Jul 28 17:29:50 2006
@@ -43,10 +43,10 @@
       : Filename(filename), DeleteIt(deleteIt) {}
 
     ~FileRemover() {
-      if (DeleteIt)
-        try {
-          Filename.eraseFromDisk();
-        } catch (...) {}             // Ignore problems deleting the file.
+      if (DeleteIt) {
+        // Ignore problems deleting the file.
+        Filename.eraseFromDisk();
+      }
     }
 
     /// releaseFile - Take ownership of the file away from the FileRemover so 
it



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to