summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2014-04-15Gets libcxxabi building for AndroidDan Albert
Fixes a few configuration issues in libcxxabi and adds an Android makefile. Change-Id: I247372d87caabe0310bedc4540b68ab2ed1986c1
2014-01-30[libunwind] remove stray conditionalNick Kledzik
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@200432 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-18Add a first cut at a Registers_arm class, to be used for 32bit arm EHABI ↵Nico Weber
unwinding. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@197591 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-01Rename LIBUNWIND_AVAIL to LIBUNWIND_UNAVAIL so as to not conflict with other ↵Nick Kledzik
(different) LIBUNWIND_AVAIL define git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@193839 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-17unwinder: conditionalise availabilitySaleem Abdulrasool
__attribute__ (( unavailable )) is for Apple specific builds. Create a macro to conditionalise the usage of the macro. This is to aid in porting the unwinder to other platforms. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@192868 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-07libcxxabi contains the runtime support for C++. But, as some folks have Nick Kledzik
realized, it is not complete. It relies on some _Unwind_* functions to be supplied by the OS. That means it cannot be ported to platforms that don’t already have an unwinder. Years ago Apple wrote its own unwinder for MacOSX and iOS. To make libcxxabi complete, Apple has decided the source code for its unwinder can be contributed to the open source LLVM libcxxabi project, with a dual licensed under LLVM and MIT license. So, I’ve spent some time cleaning up the sources to make them conform with LLVM style and to conditionalize the sources in a way that should make it easier to port to other platforms. The sources are in a separate "Unwind" directory under "src" in libcxxabi. Background: Most architectures now use "zero cost" exceptions for C++. The zero cost means there are no extra instructions executed if no exceptions are thrown. But if an exception is thrown, the runtime must consult side tables and figure out how to restore registers and "unwind" from the current stack frame to the catch clause. That ability to modify the stack frames and cause the thread to resume in a catch clause with all registers restored properly is the main purpose of the unwinder. This unwinder has two levels of API. The high level APIs are the _Unwind_* functions which the cxa_* exception functions in libcxxabi require. The low level APIs are the unw_* functions which are an interface defined by the the old HP libunwind project (which shares no code with this unwinder). git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@192136 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-17Tweaks/cleanups provided by Matthew DempskyHoward Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@184118 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-10Add capability to demangle invocation functions for ObjC blocks.Howard Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@179208 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-19I've moved __cxa_terminate_handler, __cxa_unexpected_handler and ↵Howard Hinnant
__cxa_new_handler from the public header cxxabi.h into the private header cxa_handlers.hpp. During this move I've also moved them from namespace __cxxabiapple into the global namespace. They are, and have always been extern C and so the namespace (or lack of it) does not affect their ABI. In general external clients should not reference these symbols. They are atomic variables and will be changing into C++11 atomic variables in the future. However for those few clients who really need access to them, their name, mangling, size, alignment and layout will remain stable. You just may need your own declaration of them. Include guards have been added to the private header cxa_exception.hpp. The private header cxa_default_handlers.hpp has been removed and the default handlers are now file-static. Include guards have been added to the private header cxa_handlers.hpp. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@153039 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-14Enable __arm__ on appleHoward Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@152735 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-23I had originally made the handler function pointers a static internal ↵Howard Hinnant
detail, not accessible to the outside world. I did this because they must be accessed in a thread-safe manner, and the library provides thread-safe getters and setters for these. However I am at least temporarily making them public and giving them the Apple-extension names. In the future these may disappear again, and I think that would probably be a good idea. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@151256 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-17Add (reluctantly) a namespace alias for __cxxabiv1.Howard Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@150828 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-02Work on restricting symbol visibility.Howard Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149633 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-02Add version number to this library so we can recognize when we're using it.Howard Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149632 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-30Put throw() clauses back on these functions in cxxabi.h. This header must ↵Howard Hinnant
be C++03 compatible and these throw specs are consistent with the current cxxabi.h that Apple ships. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149249 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-24By changing all of the throw() specs to noexcept I've been able to compile ↵Howard Hinnant
and link all of the source files into a dylib. Prior to this substitution the changed functions were calling __cxa_call_unexpected which isn't implemented yet. However in none of these cases do we actaully want __cxa_call_unexpected to be called. Primative buildit script added. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@148880 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-21Added __cxa_increment_exception_refcount, ↵Howard Hinnant
__cxa_decrement_exception_refcount, __cxa_current_primary_exception, __cxa_rethrow_primary_exception git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@147106 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-15Fixed several bugs, implemented support for vector types, and cleaned out ↵Howard Hinnant
dead code. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@146677 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-08Silence some -Wall warnings pointed out by Marshall ClowHoward Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@137047 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-02make cxxabi.h safe for C code to includeNick Kledzik
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@136682 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-02make LIBCXXABI_NORETURN be the right attributeNick Kledzik
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@136680 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-20Fixed struct/class mismatch for std::type_info and added NORETURN flagsMarshall Clow
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@135584 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-22In cxa_demangle.cpp, rewrite __parse_unresolved_name to reflect updated ↵Howard Hinnant
understanding and sync with updated clang mangling. Also fix think-o in __parse_encoding enabling the parsing of trailing .eh and .b. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@133632 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-07tabs to spacesHoward Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@132729 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-07Add support for the ARM EABI variant of the __cxa_guard methods, controlled byNick Lewycky
the LIBCXXABI_ARMEABI macro. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@132723 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-03Added __cxa_bad_cast and __cxa_bad_typeid and placeholder NORETURN macroMarshall Clow
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@132524 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-24Introduce cxa_virtual.cpp and cxa_guard.cpp. Contributed by Nick Lewycky, ↵Howard Hinnant
Howard Hinnant and John McCall git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@132009 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-05initial importHoward Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@130921 91177308-0d34-0410-b5e6-96231b3b80d8