aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2022-10-25 10:08:21 -0400
committerLouis Dionne <ldionne.2@gmail.com>2022-11-15 10:58:11 -0500
commit226409c62879bf5ff9928cd23a4255cd7c614fe0 (patch)
tree67832e0e6a7cfbe190c7ba7d6aab522b004f8d6e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent20b0e0a71a333842e13f292c1d224877be6fe538 (diff)
downloadllvm-226409c62879bf5ff9928cd23a4255cd7c614fe0.zip
llvm-226409c62879bf5ff9928cd23a4255cd7c614fe0.tar.gz
llvm-226409c62879bf5ff9928cd23a4255cd7c614fe0.tar.bz2
[libc++] Only include_next C library headers when they exist
Some platforms don't provide all C library headers. In practice, libc++ only requires a few C library headers to exist, and only a few functions on those headers. Missing functions that libc++ doesn't need for its own implementation are handled properly by the using_if_exists attribute, however a missing header is currently a hard error when we try to do #include_next. This patch should make libc++ more flexible on platforms that do not provide C headers that libc++ doesn't actually require for its own implementation. The only downside is that it may move some errors from the #include_next point to later in the compilation if we actually try to use something that isn't provided, which could be somewhat confusing. However, these errors should be caught by folks trying to port libc++ over to a new platform (when running the libc++ test suite), not by end users. Differential Revision: https://reviews.llvm.org/D136683
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions