aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-08-18 09:08:17 -0400
committerLouis Dionne <ldionne.2@gmail.com>2022-03-11 09:06:43 -0500
commit21f73d5826fb5024a27eaacafadfa316f58949c5 (patch)
treeae60ee4a3aa7ec7c926514a0963e3e93358158f8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent611469c5c5426c761cf02bd4bdde31890038b181 (diff)
downloadllvm-21f73d5826fb5024a27eaacafadfa316f58949c5.zip
llvm-21f73d5826fb5024a27eaacafadfa316f58949c5.tar.gz
llvm-21f73d5826fb5024a27eaacafadfa316f58949c5.tar.bz2
[libc++] Remove workaround for C11 features on compilers that don't support using_if_exists
Instead of carrying around #ifdefs to determine whether those functions are available on the platform, unconditionally use the using_if_exists attribute to import it into namespace std only when available. That was the purpose of this attribute from the start. This change means that trying to use libc++ with an old SDK (or on an old platform for platforms that ship system headers in /usr/include) will require a recent Clang that supports the using_if_exists attribute. When using an older Clang or GCC, the underlying platform has to support a C11 standard library. Differential Revision: https://reviews.llvm.org/D108203
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions