[llvm] r187383 - Make file_status::getUniqueID const.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jul 29 14:55:38 PDT 2013
Author: rafael
Date: Mon Jul 29 16:55:38 2013
New Revision: 187383
URL: http://llvm.org/viewvc/llvm-project?rev=187383&view=rev
Log:
Make file_status::getUniqueID const.
Modified:
llvm/trunk/include/llvm/Support/FileSystem.h
llvm/trunk/lib/Support/Unix/Path.inc
llvm/trunk/lib/Support/Windows/Path.inc
Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=187383&r1=187382&r2=187383&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Mon Jul 29 16:55:38 2013
@@ -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; }
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=187383&r1=187382&r2=187383&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Mon Jul 29 16:55:38 2013
@@ -293,7 +293,7 @@ TimeValue file_status::getLastModificati
return Ret;
}
-UniqueID file_status::getUniqueID() {
+UniqueID file_status::getUniqueID() const {
return UniqueID(fs_st_dev, fs_st_ino);
}
Modified: llvm/trunk/lib/Support/Windows/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Path.inc?rev=187383&r1=187382&r2=187383&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Path.inc (original)
+++ llvm/trunk/lib/Support/Windows/Path.inc Mon Jul 29 16:55:38 2013
@@ -269,7 +269,7 @@ std::string getMainExecutable(const char
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<uint64_t>(FileIndexHigh) << 32ULL) |
More information about the llvm-commits
mailing list