make getLastModificationTime const. Move it with the other getters.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 20 Jun 2013 21:51:49 +0000 (21:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 20 Jun 2013 21:51:49 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184478 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/FileSystem.h
lib/Support/Unix/PathV2.inc
lib/Support/Windows/PathV2.inc

index 08727d7f79cea5b0be53f3cbdf818fc3b239f7aa..b660a5b161839125d65ef1a4f846f9779274f179 100644 (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
index e9cb6e75627cd37bbdf596b88cf12cfd25f09ba2..4c76f28c66c2f27450419b846935fa8a54fd71c8 100644 (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;
index 5e0375fcf9a48ee1c693c923e2669448b9722621..0c12bb440e8277842cac569b5bba8ff1a3863c73 100644 (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;