Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type...
authorMarshall Clow <mclow.lists@gmail.com>
Thu, 25 Aug 2016 15:09:01 +0000 (15:09 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Thu, 25 Aug 2016 15:09:01 +0000 (15:09 +0000)
commitd437fa5c8c1185af695b87cdd5ea83aa4a6e7382
tree2fc9b60f206ef14e242a52af06f8f95b95693962
parentb41b990e05797d1d69ea735bb168893974757422
Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type we define. They either construct and throw the exception, or abort() (if exceptions are disabled). Use these functions everywhere instead of assert()ing when exceptions are disabled. WARNING: This is a behavior change - but only with exceptions disabled.  Reviewed as: https://reviews.llvm.org/D23855.

llvm-svn: 279744
30 files changed:
libcxx/include/__functional_03
libcxx/include/__locale
libcxx/include/any
libcxx/include/array
libcxx/include/bitset
libcxx/include/complex
libcxx/include/deque
libcxx/include/experimental/any
libcxx/include/experimental/dynarray
libcxx/include/experimental/optional
libcxx/include/experimental/string_view
libcxx/include/fstream
libcxx/include/functional
libcxx/include/future
libcxx/include/locale
libcxx/include/memory
libcxx/include/new
libcxx/include/regex
libcxx/include/stdexcept
libcxx/include/string
libcxx/include/typeinfo
libcxx/include/vector
libcxx/src/debug.cpp
libcxx/src/experimental/memory_resource.cpp
libcxx/src/locale.cpp
libcxx/src/new.cpp
libcxx/src/string.cpp
libcxx/src/system_error.cpp
libcxx/src/thread.cpp
libcxx/src/typeinfo.cpp