[libc++abi] Remove uses of C++ headers when possible
authorLouis Dionne <ldionne@apple.com>
Tue, 1 Oct 2019 18:43:02 +0000 (18:43 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 1 Oct 2019 18:43:02 +0000 (18:43 +0000)
commit04501a22a073d0f64e980aaa8c895a6e86c0a103
treef6fcc36facda36f7093498ea88cad3b7b69f1a6c
parentae40dfc1e3ce5f64be3234ed7958792f15800181
[libc++abi] Remove uses of C++ headers when possible

This reduces the (circular) dependency of libc++abi on a C++ standard
library. Outside of the demangler which uses fancier C++ features, the
only C++ headers now required by libc++abi are pretty much <new> and
<exception>, and that's because libc++abi defines some types that are
declared in those headers.

llvm-svn: 373381
libcxxabi/src/cxa_default_handlers.cpp
libcxxabi/src/cxa_exception.cpp
libcxxabi/src/cxa_thread_atexit.cpp
libcxxabi/src/cxa_vector.cpp
libcxxabi/src/fallback_malloc.cpp
libcxxabi/src/fallback_malloc.h
libcxxabi/src/private_typeinfo.h