aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-08-19 12:39:16 -0400
committerLouis Dionne <ldionne.2@gmail.com>2021-08-20 08:38:58 -0400
commitf3bc0e51ab72f504445228cbb712542154ccb4cf (patch)
treead78030eab7a0ae395493248c8038da7f6efd7ae /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentb0391dfc737ede147e128fe877045f61fc5e4905 (diff)
downloadllvm-f3bc0e51ab72f504445228cbb712542154ccb4cf.zip
llvm-f3bc0e51ab72f504445228cbb712542154ccb4cf.tar.gz
llvm-f3bc0e51ab72f504445228cbb712542154ccb4cf.tar.bz2
[libc++] Bypass calling exception-throwing functions in the dylib with -fno-exceptions
basic_string and vector currently have a hard dependency on the compiled library because they need to call __vector_base_common::__throw_xxx(), which are externally instantiated in the compiled library. That makes sense when exceptions are enabled (because we're trying to localize the exception-throwing code to the compiled library), but it doesn't really make sense when exceptions are disabled, and the __throw_xxx functions are just calling abort() anyways. This patch simply overrides the __throw_xxx() functions so that they don't rely on the compiled library when exceptions are disabled. Differential Revision: https://reviews.llvm.org/D108389
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions