Changes in directory llvm/include/llvm/System:
Path.h updated: 1.45 -> 1.46 --- Log message: Add a uniqueID field to the FileStatus structure for Paths. This will map to the inode number on Unix and something far less unique on Windows. The windows case needs to be improved. --- Diffs of the changes: (+3 -1) Path.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) Index: llvm/include/llvm/System/Path.h diff -u llvm/include/llvm/System/Path.h:1.45 llvm/include/llvm/System/Path.h:1.46 --- llvm/include/llvm/System/Path.h:1.45 Thu Mar 29 11:50:49 2007 +++ llvm/include/llvm/System/Path.h Thu Mar 29 12:00:31 2007 @@ -40,17 +40,19 @@ uint32_t mode; ///< Mode of the file, if applicable uint32_t user; ///< User ID of owner, if applicable uint32_t group; ///< Group ID of owner, if applicable + uint64_t uniqueID; ///< A number to uniquely ID this file bool isDir : 1; ///< True if this is a directory. bool isFile : 1; ///< True if this is a file. FileStatus() : fileSize(0), modTime(0,0), mode(0777), user(999), - group(999), isDir(false) { } + group(999), uniqueID(0), isDir(false), isFile(false) { } TimeValue getTimestamp() const { return modTime; } uint64_t getSize() const { return fileSize; } uint32_t getMode() const { return mode; } uint32_t getUser() const { return user; } uint32_t getGroup() const { return group; } + uint32_t getUniqueID() const { return uniqueID; } }; /// This class provides an abstraction for the path to a file or directory _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits