make getLastModificationTime const. Move it with the other getters.

llvm-svn: 184478
This commit is contained in:
Rafael Espindola 2013-06-20 21:51:49 +00:00
parent 8935442538
commit be3ede7958
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;