[llvm] r184478 - make getLastModificationTime const. Move it with the other getters.

Rafael Espindola rafael.espindola at gmail.com
Thu Jun 20 14:51:49 PDT 2013


Author: rafael
Date: Thu Jun 20 16:51:49 2013
New Revision: 184478

URL: http://llvm.org/viewvc/llvm-project?rev=184478&view=rev
Log:
make getLastModificationTime const. Move it with the other getters.

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

Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=184478&r1=184477&r2=184478&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Thu Jun 20 16:51:49 2013
@@ -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

Modified: llvm/trunk/lib/Support/Unix/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=184478&r1=184477&r2=184478&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Unix/PathV2.inc Thu Jun 20 16:51:49 2013
@@ -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;

Modified: llvm/trunk/lib/Support/Windows/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/PathV2.inc?rev=184478&r1=184477&r2=184478&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Windows/PathV2.inc Thu Jun 20 16:51:49 2013
@@ -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;





More information about the llvm-commits mailing list