mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
make getLastModificationTime const. Move it with the other getters.
llvm-svn: 184478
This commit is contained in:
parent
873dafebc7
commit
932ff464b9
@ -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