From 3d1b0c73319ec1d01ec927ead03a09bbc62c7aea Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 7 Aug 2003 21:28:50 +0000 Subject: Moved removeFile() and getUniqueFilename() into FileUtilities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7691 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/FileUtilities.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/llvm/Support/FileUtilities.h') diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 8d310203e7..2c8eba3949 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -26,4 +26,14 @@ 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 +/// +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); + #endif -- cgit v1.2.3-18-g5258