diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-31 06:16:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-31 06:16:02 +0000 |
commit | 7a312bc102efbbf725e5a85d412df8da7e22744d (patch) | |
tree | 4d8fb8c4fd81abfd9151d8a1743ff04076edae0a /include | |
parent | 81a085a2598a877a02dbedf9d91e7bf899fb2f02 (diff) | |
download | external_llvm-7a312bc102efbbf725e5a85d412df8da7e22744d.zip external_llvm-7a312bc102efbbf725e5a85d412df8da7e22744d.tar.gz external_llvm-7a312bc102efbbf725e5a85d412df8da7e22744d.tar.bz2 |
add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/FileUtilities.h | 6 | ||||
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/Support/FileUtilities.h b/include/Support/FileUtilities.h index c765efa..3bc3aa8 100644 --- a/include/Support/FileUtilities.h +++ b/include/Support/FileUtilities.h @@ -87,6 +87,12 @@ bool MakeFileReadable(const std::string &Filename); long long getFileSize(const std::string &Filename); +/// getFileTimestamp - Get the last modified time for the specified file in an +/// unspecified format. This is useful to allow checking to see if a file was +/// updated since that last time the timestampt was aquired. If the file does +/// not exist or there is an error getting the time-stamp, zero is returned. +unsigned long long getFileTimestamp(const std::string &Filename); + /// FDHandle - Simple handle class to make sure a file descriptor gets closed /// when the object is destroyed. This handle acts similarly to an diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index c765efa..3bc3aa8 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -87,6 +87,12 @@ bool MakeFileReadable(const std::string &Filename); long long getFileSize(const std::string &Filename); +/// getFileTimestamp - Get the last modified time for the specified file in an +/// unspecified format. This is useful to allow checking to see if a file was +/// updated since that last time the timestampt was aquired. If the file does +/// not exist or there is an error getting the time-stamp, zero is returned. +unsigned long long getFileTimestamp(const std::string &Filename); + /// FDHandle - Simple handle class to make sure a file descriptor gets closed /// when the object is destroyed. This handle acts similarly to an |