llvm-capstone/libcxx
Louis Dionne 87cec86597 [libc++] Remove symbols for a std::allocator_arg & friends from the dylib
This patch removes the symbols defined in the library for std::allocator_arg,
std::defer_lock, std::try_to_lock, std::adopt_lock, and std::piecewise_construct.
Those were defined in the library because we provided them in C++03 as an
extension, and in C++03 it was impossible to define them as `constexpr`
variables, like in the spec.

This is technically an ABI break since we are removing symbols from the
library. However, in practice, only programs compiled in C++03 mode who
take the address of those objects (or pass them as a reference) will have
an undefined ref to those symbols. In practice, this is expected to be
rare. First, those are C++11 features that we happen to provide in C++03,
and only the C++03 definition can potentially lead to code referencing
the dylib definition. So any code that is using these objects but compiling
in C++11 mode (as they should) is not at risk. Second, all uses of these
types in the library is done by passing those types by value to a function
that can get inlined. Since they are empty types, the compiler won't
generate an undefined reference if passed by value, since there's nothing
to pass anyway.

Long story short, the risk for code actually containing an undefined
reference to one of these types is rather small (but non-zero). I also
couldn't find any app on the App Store that referenced these symbols,
which supports my impression that this won't be an issue in practice.

Differential Revision: https://reviews.llvm.org/D145587
2023-04-19 17:27:14 -04:00
..
benchmarks [libc++abi] Improve performance of __dynamic_cast 2023-03-19 10:04:34 +01:00
cmake [libc++][NFC] Move the stdlib= test suite configuration for Apple into the cfg.in files 2023-03-17 15:08:35 -04:00
docs [libc++] Remove symbols for a std::allocator_arg & friends from the dylib 2023-04-19 17:27:14 -04:00
include [libc++] Remove symbols for a std::allocator_arg & friends from the dylib 2023-04-19 17:27:14 -04:00
lib [libc++] Remove symbols for a std::allocator_arg & friends from the dylib 2023-04-19 17:27:14 -04:00
src [libc++] Remove symbols for a std::allocator_arg & friends from the dylib 2023-04-19 17:27:14 -04:00
test [libc++] Adds missing includes. 2023-04-19 17:35:38 +02:00
utils [libc++] Add helper script libcxx-lit for running tests 2023-04-19 15:35:42 -04:00
.clang-format [libc++] Remove _LIBCPP_CONSTEVAL 2023-03-10 09:04:48 -05:00
.clang-tidy [libc++] Enable radability-identifier-naming for local variables and fix any problems 2023-02-11 20:03:53 +01:00
.gitignore
appveyor-reqs-install.cmd
appveyor.yml [libc++] Re-apply "Always build c++experimental.a"" 2022-07-19 10:44:19 -04:00
CMakeLists.txt Revert "Revert "Revert "[CMake] Bumps minimum version to 3.20.0.""" 2023-04-15 20:12:24 +02:00
CREDITS.TXT Microsoft's floating-point to_chars powered by Ryu and Ryu Printf 2021-12-12 16:34:50 +01:00
LICENSE.TXT
TODO.TXT