diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-12-21 03:54:57 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-12-21 03:54:57 +0000 |
commit | 866885e12a2278a77dcb195872730d8b0498e43e (patch) | |
tree | 174a81ced0bc340d2fb85bbd3a87829d937a4449 /libcxx/include/filesystem | |
parent | 3eae3c459061b092c00f280da9761845b0e66504 (diff) | |
download | bcm5719-llvm-866885e12a2278a77dcb195872730d8b0498e43e.tar.gz bcm5719-llvm-866885e12a2278a77dcb195872730d8b0498e43e.zip |
Implement LWG 3145: file_clock breaks ABI for C++17 implementations.
This patch adds std::chrono::file_clock, but without breaking the
existing ABI for std::filesystem.
llvm-svn: 349883
Diffstat (limited to 'libcxx/include/filesystem')
-rw-r--r-- | libcxx/include/filesystem | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem index 339bb252fce..06a0eb33c4e 100644 --- a/libcxx/include/filesystem +++ b/libcxx/include/filesystem @@ -259,36 +259,6 @@ _LIBCPP_PUSH_MACROS _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM -struct _FilesystemClock { -#if !defined(_LIBCPP_HAS_NO_INT128) - typedef __int128_t rep; - typedef nano period; -#else - typedef long long rep; - typedef nano period; -#endif - - typedef chrono::duration<rep, period> duration; - typedef chrono::time_point<_FilesystemClock> time_point; - - static _LIBCPP_CONSTEXPR_AFTER_CXX11 const bool is_steady = false; - - _LIBCPP_FUNC_VIS static time_point now() noexcept; - - _LIBCPP_INLINE_VISIBILITY - static time_t to_time_t(const time_point& __t) noexcept { - typedef chrono::duration<rep> __secs; - return time_t( - chrono::duration_cast<__secs>(__t.time_since_epoch()).count()); - } - - _LIBCPP_INLINE_VISIBILITY - static time_point from_time_t(time_t __t) noexcept { - typedef chrono::duration<rep> __secs; - return time_point(__secs(__t)); - } -}; - typedef chrono::time_point<_FilesystemClock> file_time_type; struct _LIBCPP_TYPE_VIS space_info { |