summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2004-12-16 04:06:56 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2004-12-16 04:06:56 +0000
commitfc6ebc9cb7b89b2385a26a151979e13afada3014 (patch)
tree4d8a6b246a0de1d7db5eca6c588421d344a1919c /llvm/lib
parentb63ff380f14ff02567a61018678b595d7b07fa84 (diff)
downloadbcm5719-llvm-fc6ebc9cb7b89b2385a26a151979e13afada3014.tar.gz
bcm5719-llvm-fc6ebc9cb7b89b2385a26a151979e13afada3014.zip
Expository comment submitted by Henrik Bach
llvm-svn: 18976
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Win32/TimeValue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/TimeValue.cpp b/llvm/lib/System/Win32/TimeValue.cpp
index de8f267089d..34a5df18ef3 100644
--- a/llvm/lib/System/Win32/TimeValue.cpp
+++ b/llvm/lib/System/Win32/TimeValue.cpp
@@ -32,6 +32,9 @@ TimeValue TimeValue::now() {
std::string TimeValue::toString() const {
#ifdef __MINGW
+ // This ban may be lifted by either:
+ // (i) a future MinGW version other than 1.0 inherents the __time64_t type, or
+ // (ii) configure tests for either the time_t or __time64_t type.
time_t ourTime = time_t(this->toEpochTime());
struct tm *lt = ::localtime(&ourTime);
#else
OpenPOWER on IntegriCloud