mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Make file_status::getUniqueID const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fde907244
commit
e0913798bc
@ -186,7 +186,7 @@ public:
|
|||||||
file_type type() const { return Type; }
|
file_type type() const { return Type; }
|
||||||
perms permissions() const { return Perms; }
|
perms permissions() const { return Perms; }
|
||||||
TimeValue getLastModificationTime() const;
|
TimeValue getLastModificationTime() const;
|
||||||
UniqueID getUniqueID();
|
UniqueID getUniqueID() const;
|
||||||
|
|
||||||
#if defined(LLVM_ON_UNIX)
|
#if defined(LLVM_ON_UNIX)
|
||||||
uint32_t getUser() const { return fs_st_uid; }
|
uint32_t getUser() const { return fs_st_uid; }
|
||||||
|
@ -293,7 +293,7 @@ TimeValue file_status::getLastModificationTime() const {
|
|||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
UniqueID file_status::getUniqueID() {
|
UniqueID file_status::getUniqueID() const {
|
||||||
return UniqueID(fs_st_dev, fs_st_ino);
|
return UniqueID(fs_st_dev, fs_st_ino);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ std::string getMainExecutable(const char *argv0, void *MainExecAddr) {
|
|||||||
return ret != MAX_PATH ? pathname : "";
|
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
|
// The file is uniquely identified by the volume serial number along
|
||||||
// with the 64-bit file identifier.
|
// with the 64-bit file identifier.
|
||||||
uint64_t FileID = (static_cast<uint64_t>(FileIndexHigh) << 32ULL) |
|
uint64_t FileID = (static_cast<uint64_t>(FileIndexHigh) << 32ULL) |
|
||||||
|
Loading…
Reference in New Issue
Block a user