[libcxx] r216999 - Fix comment that was obsoleted by r216949

Jonathan Roelofs jonathan at codesourcery.com
Tue Sep 2 16:52:46 PDT 2014


Author: jroelofs
Date: Tue Sep  2 18:52:46 2014
New Revision: 216999

URL: http://llvm.org/viewvc/llvm-project?rev=216999&view=rev
Log:
Fix comment that was obsoleted by r216949

Modified:
    libcxx/trunk/src/chrono.cpp

Modified: libcxx/trunk/src/chrono.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/chrono.cpp?rev=216999&r1=216998&r2=216999&view=diff
==============================================================================
--- libcxx/trunk/src/chrono.cpp (original)
+++ libcxx/trunk/src/chrono.cpp Tue Sep  2 18:52:46 2014
@@ -109,10 +109,8 @@ steady_clock::now() _NOEXCEPT
 }
 
 #else  // __APPLE__
-// FIXME: We assume that clock_gettime(CLOCK_MONOTONIC) works on
-// non-apple systems.  Instead, we should check _POSIX_TIMERS and
-// _POSIX_MONOTONIC_CLOCK and fall back to something else if those
-// don't exist.
+// FIXME: if _LIBCPP_HAS_NO_MONOTONIC_CLOCK, then clock_gettime isn't going to
+// work. It may be possible to fall back on something else, depending on the system.
 
 // Warning:  If this is not truly steady, then it is non-conforming.  It is
 //  better for it to not exist and have the rest of libc++ use system_clock





More information about the cfe-commits mailing list