diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-06-02 00:51:20 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-06-02 00:51:20 +0000 | 
| commit | 5bcd2323ff0ee9aadab6ad9196adf3c6afb786ca (patch) | |
| tree | 83da259d214f44b27effeda4961fb42a8be7b03f /llvm/include | |
| parent | e5a7239cae0cbbbd8e3defc81ab7f53d5f811100 (diff) | |
| download | bcm5719-llvm-5bcd2323ff0ee9aadab6ad9196adf3c6afb786ca.tar.gz bcm5719-llvm-5bcd2323ff0ee9aadab6ad9196adf3c6afb786ca.zip | |
Add a new CopyFile function
llvm-svn: 13944
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/Support/FileUtilities.h | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/llvm/include/Support/FileUtilities.h b/llvm/include/Support/FileUtilities.h index d5db63f6d7c..78983b8352c 100644 --- a/llvm/include/Support/FileUtilities.h +++ b/llvm/include/Support/FileUtilities.h @@ -53,6 +53,10 @@ bool FileOpenable(const std::string &Filename);  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 @@ bool DiffFiles(const std::string &FileA, const std::string &FileB,  ///  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); | 

