[libcxx] r274419 - Remove workarounds for C++17 inline variable ABI break. It has been fixed in clang.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 1 20:21:59 PDT 2016
Author: ericwf
Date: Fri Jul 1 22:21:58 2016
New Revision: 274419
URL: http://llvm.org/viewvc/llvm-project?rev=274419&view=rev
Log:
Remove workarounds for C++17 inline variable ABI break. It has been fixed in clang.
Modified:
libcxx/trunk/src/chrono.cpp
libcxx/trunk/src/experimental/filesystem/path.cpp
Modified: libcxx/trunk/src/chrono.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/chrono.cpp?rev=274419&r1=274418&r2=274419&view=diff
==============================================================================
--- libcxx/trunk/src/chrono.cpp (original)
+++ libcxx/trunk/src/chrono.cpp Fri Jul 1 22:21:58 2016
@@ -32,9 +32,6 @@ namespace chrono
// system_clock
const bool system_clock::is_steady;
-// Make is_steady non-discardable in C++17
-// See PR28395 (https://llvm.org/bugs/show_bug.cgi?id=28395)
-static const bool& __is_steady_force_use1 __attribute__((used)) = system_clock::is_steady;
system_clock::time_point
system_clock::now() _NOEXCEPT
@@ -71,10 +68,6 @@ system_clock::from_time_t(time_t t) _NOE
// instead.
const bool steady_clock::is_steady;
-// Make is_steady non-discardable in C++17
-// See PR28395 (https://llvm.org/bugs/show_bug.cgi?id=28395)
-static const bool& __is_steady_force_use2 __attribute__((used)) = steady_clock::is_steady;
-
#ifdef CLOCK_MONOTONIC
Modified: libcxx/trunk/src/experimental/filesystem/path.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/experimental/filesystem/path.cpp?rev=274419&r1=274418&r2=274419&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/filesystem/path.cpp (original)
+++ libcxx/trunk/src/experimental/filesystem/path.cpp Fri Jul 1 22:21:58 2016
@@ -13,10 +13,6 @@
_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_FILESYSTEM
_LIBCPP_CONSTEXPR path::value_type path::preferred_separator;
-// Make preferred_separator non-discardable in C++17
-// See PR28395 (https://llvm.org/bugs/show_bug.cgi?id=28395)
-static const path::value_type&
- __preferred_sep_force_use __attribute__((used)) = path::preferred_separator;
namespace { namespace parser
{
More information about the cfe-commits
mailing list