summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/cxa_new_delete.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup new/delete definitionsEric Fiselier2017-03-011-244/+0
| | | | | | | | | | | | | | | | | | | | This patch cleans up how libc++abi handles the definitions for new/delete. It is in preperation for upcoming changes to fix how both libc++ and libc++abi handle new/delete. The primary changes in this patch are: * Move the definitions for bad_array_length and bad_new_array_length into stdlib_exception.cpp. This way stdlib_new_delete.cpp only contains new/delete. * Rename cxa_new_delete.cpp -> stdlib_new_delete.cpp for consistency with other files. * Add a FIXME regarding when stdlib_new_delete.cpp is actually compiled as part of the dylib. llvm-svn: 296715
* [libc++abi] Clean up visibilityShoaib Meenai2017-03-011-8/+9
| | | | | | | | | | | | | | | | | Use the libc++abi visibility macros instead of pragmas or using visibility attributes directly. Clean up redundant attributes on definitions (where the declarations already have visibility attributes applied, from either libc++ or libc++abi headers). Introduce _LIBCXXABI_WEAK as a drive-by cleanup, which matches the semantics of _LIBCPP_WEAK. No functional change. Tested by building on Linux before and after this change and verifying that the list of exported symbols is identical. Differential Revision: https://reviews.llvm.org/D26949 llvm-svn: 296576
* Fix new/delete exception specifications to match libc++ after r290845Eric Fiselier2017-01-031-44/+13
| | | | llvm-svn: 290847
* [libcxxabi] Introduce a -fno-exceptions libc++abi libary variantAsiri Rathnayake2016-05-311-0/+12
| | | | | | | | | | | | | | | | | Currently there is only support for a -fno-exceptions libc++ build. This is problematic for functions such as std::terminate() which are defined in libc++abi and using any of those functions throws away most of the benefits of using -fno-exceptions (code-size). This patch introduces a -fno-exceptions libc++abi build to address this issue. This new variant of libc++abi cannot be linked against any with-exceptions code as some symbols necessary for handling exceptions are missing in this library. Differential revision: http://reviews.llvm.org/D20677 Reviewers: EricWF, mclow.lists, bcraig llvm-svn: 271267
* If libc++ has not declared bad_array_length, then declare it here just so ↵Howard Hinnant2013-11-071-0/+13
| | | | | | that it gets into the binary. llvm-svn: 194208
* Adding bad_array_length to libc++abiMarshall Clow2013-09-111-0/+18
| | | | llvm-svn: 190479
* Add some needed symbols to cxa_new_delete.cpp and put the display() stuff ↵Howard Hinnant2012-01-241-0/+37
| | | | | | under #DEBUG (again). llvm-svn: 148860
* Add new and delete operatorsHoward Hinnant2011-12-201-0/+194
llvm-svn: 146989
OpenPOWER on IntegriCloud