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

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 1 19:56:01 PDT 2004


Changes in directory llvm/include/Support:

FileUtilities.h updated: 1.17 -> 1.18

---
Log message:

Add a new CopyFile function


---
Diffs of the changes:  (+5 -1)

Index: llvm/include/Support/FileUtilities.h
diff -u llvm/include/Support/FileUtilities.h:1.17 llvm/include/Support/FileUtilities.h:1.18
--- llvm/include/Support/FileUtilities.h:1.17	Thu May 27 19:23:11 2004
+++ llvm/include/Support/FileUtilities.h	Tue Jun  1 19:51:20 2004
@@ -53,6 +53,10 @@
 bool DiffFiles(const std::string &FileA, const std::string &FileB,
                std::string *Error = 0);
 
+/// CopyFile - Copy the specified source file to the specified destination,
+/// overwriting destination if it exists.  This returns true on failure.
+///
+bool CopyFile(const std::string &Dest, const std::string &Src);
 
 /// MoveFileOverIfUpdated - If the file specified by New is different than Old,
 /// or if Old does not exist, move the New file over the Old file.  Otherwise,
@@ -60,7 +64,7 @@
 ///
 void MoveFileOverIfUpdated(const std::string &New, const std::string &Old);
  
-/// removeFile - Delete the specified file
+/// removeFile - Delete the specified file.
 ///
 void removeFile(const std::string &Filename);
 





More information about the llvm-commits mailing list