From e0913798bca5724d2852386d369d1aa830f97173 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 29 Jul 2013 21:55:38 +0000 Subject: [PATCH] Make file_status::getUniqueID const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187383 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/FileSystem.h | 2 +- lib/Support/Unix/Path.inc | 2 +- lib/Support/Windows/Path.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 908878f1b6e..60455a41141 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -186,7 +186,7 @@ public: file_type type() const { return Type; } perms permissions() const { return Perms; } TimeValue getLastModificationTime() const; - UniqueID getUniqueID(); + UniqueID getUniqueID() const; #if defined(LLVM_ON_UNIX) uint32_t getUser() const { return fs_st_uid; } diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 0c4518c7493..4dcfa094a7b 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -293,7 +293,7 @@ TimeValue file_status::getLastModificationTime() const { return Ret; } -UniqueID file_status::getUniqueID() { +UniqueID file_status::getUniqueID() const { return UniqueID(fs_st_dev, fs_st_ino); } diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index f3460e4c197..7cb95c4e36b 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -269,7 +269,7 @@ std::string getMainExecutable(const char *argv0, void *MainExecAddr) { return ret != MAX_PATH ? pathname : ""; } -UniqueID file_status::getUniqueID() { +UniqueID file_status::getUniqueID() const { // The file is uniquely identified by the volume serial number along // with the 64-bit file identifier. uint64_t FileID = (static_cast(FileIndexHigh) << 32ULL) |