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

Reid Spencer reid at x10sys.com
Tue Dec 14 17:47:05 PST 2004



Changes in directory llvm/include/llvm/Support:

FileUtilities.h updated: 1.24 -> 1.25
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/PR351 :
Remove getUniqueFilename and CopyFile. These are now implemented by 
sys::Path::makeUnique and sys::CopyFile, respectively. 


---
Diffs of the changes:  (+0 -11)

Index: llvm/include/llvm/Support/FileUtilities.h
diff -u llvm/include/llvm/Support/FileUtilities.h:1.24 llvm/include/llvm/Support/FileUtilities.h:1.25
--- llvm/include/llvm/Support/FileUtilities.h:1.24	Mon Dec 13 14:08:14 2004
+++ llvm/include/llvm/Support/FileUtilities.h	Tue Dec 14 19:46:54 2004
@@ -28,11 +28,6 @@
 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,
 /// remove the New file.
@@ -43,12 +38,6 @@
 ///
 void removeFile(const std::string &Filename);
 
-/// getUniqueFilename - Return a filename with the specified prefix.  If the
-/// file does not exist yet, return it, otherwise add a suffix to make it
-/// unique.
-///
-std::string getUniqueFilename(const std::string &FilenameBase);
-
 /// FDHandle - Simple handle class to make sure a file descriptor gets closed
 /// when the object is destroyed.  This handle acts similarly to an
 /// std::auto_ptr, in that the copy constructor and assignment operators






More information about the llvm-commits mailing list