summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-20 21:51:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-20 21:51:49 +0000
commitb0bdcb5f8af7cc4e64aad5954f2230f47fa4ef90 (patch)
tree315911fee3121a73d645e2d97435362e5619a950
parente38f640b22979994b42fb2f2aafc44cc39c20e8e (diff)
downloadllvm-b0bdcb5f8af7cc4e64aad5954f2230f47fa4ef90.tar.gz
llvm-b0bdcb5f8af7cc4e64aad5954f2230f47fa4ef90.tar.bz2
llvm-b0bdcb5f8af7cc4e64aad5954f2230f47fa4ef90.tar.xz
make getLastModificationTime const. Move it with the other getters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184478 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/FileSystem.h4
-rw-r--r--lib/Support/Unix/PathV2.inc2
-rw-r--r--lib/Support/Windows/PathV2.inc2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index 08727d7f79..b660a5b161 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/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/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc
index e9cb6e7562..4c76f28c66 100644
--- a/lib/Support/Unix/PathV2.inc
+++ b/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/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc
index 5e0375fcf9..0c12bb440e 100644
--- a/lib/Support/Windows/PathV2.inc
+++ b/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;