mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +00:00
make getLastModificationTime const. Move it with the other getters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e38f640b22
commit
b0bdcb5f8a
@ -175,11 +175,11 @@ public:
|
||||
// getters
|
||||
file_type type() const { return Type; }
|
||||
perms permissions() const { return Perms; }
|
||||
|
||||
TimeValue getLastModificationTime() const;
|
||||
|
||||
// setters
|
||||
void type(file_type v) { Type = v; }
|
||||
void permissions(perms p) { Perms = p; }
|
||||
TimeValue getLastModificationTime();
|
||||
};
|
||||
|
||||
/// file_magic - An "enum class" enumeration of file types based on magic (the first
|
||||
|
@ -110,7 +110,7 @@ namespace llvm {
|
||||
namespace sys {
|
||||
namespace fs {
|
||||
|
||||
TimeValue file_status::getLastModificationTime() {
|
||||
TimeValue file_status::getLastModificationTime() const {
|
||||
TimeValue Ret;
|
||||
Ret.fromEpochTime(fs_st_mtime);
|
||||
return Ret;
|
||||
|
@ -128,7 +128,7 @@ namespace llvm {
|
||||
namespace sys {
|
||||
namespace fs {
|
||||
|
||||
TimeValue file_status::getLastModificationTime() {
|
||||
TimeValue file_status::getLastModificationTime() const {
|
||||
ULARGE_INTEGER UI;
|
||||
UI.LowPart = LastWriteTimeLow;
|
||||
UI.HighPart = LastWriteTimeHigh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user