forked from OSchip/llvm-project
make getLastModificationTime const. Move it with the other getters.
llvm-svn: 184478
This commit is contained in:
parent
8935442538
commit
be3ede7958
|
@ -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…
Reference in New Issue