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

Chris Lattner lattner at cs.uiuc.edu
Wed Dec 31 00:17:02 PST 2003

Changes in directory llvm/include/Support:

FileUtilities.h updated: 1.13 -> 1.14

Log message:

add new function

Diffs of the changes:  (+6 -0)

Index: llvm/include/Support/FileUtilities.h
diff -u llvm/include/Support/FileUtilities.h:1.13 llvm/include/Support/FileUtilities.h:1.14
--- llvm/include/Support/FileUtilities.h:1.13	Tue Dec 30 01:35:47 2003
+++ llvm/include/Support/FileUtilities.h	Wed Dec 31 00:16:02 2003
@@ -87,6 +87,12 @@
 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

More information about the llvm-commits mailing list