diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-20 21:51:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-20 21:51:49 +0000 |
| commit | be3ede79583762899d35af56a75fb213317802c6 (patch) | |
| tree | 9ef3fb3292e37a833d50f0db25c7a3e44b0d37cf /llvm | |
| parent | 8935442538e5767c2469d03f64dff162cbebf7a2 (diff) | |
| download | bcm5719-llvm-be3ede79583762899d35af56a75fb213317802c6.tar.gz bcm5719-llvm-be3ede79583762899d35af56a75fb213317802c6.zip | |
make getLastModificationTime const. Move it with the other getters.
llvm-svn: 184478
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/FileSystem.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Support/Unix/PathV2.inc | 2 | ||||
| -rw-r--r-- | llvm/lib/Support/Windows/PathV2.inc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h index 08727d7f79c..b660a5b1618 100644 --- a/llvm/include/llvm/Support/FileSystem.h +++ b/llvm/include/llvm/Support/FileSystem.h @@ -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 diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc index e9cb6e75627..4c76f28c66c 100644 --- a/llvm/lib/Support/Unix/PathV2.inc +++ b/llvm/lib/Support/Unix/PathV2.inc @@ -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; diff --git a/llvm/lib/Support/Windows/PathV2.inc b/llvm/lib/Support/Windows/PathV2.inc index 5e0375fcf9a..0c12bb440e8 100644 --- a/llvm/lib/Support/Windows/PathV2.inc +++ b/llvm/lib/Support/Windows/PathV2.inc @@ -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; |

