[PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Thu May 26 15:06:26 PDT 2016


rmaprath added a comment.

In http://reviews.llvm.org/D20677#441407, @bcraig wrote:

> https://mentorembedded.github.io/cxx-abi/abi-eh.html mentions the functions, but it doesn't really say what they are for.  The C++ standard mentions when an exception of std::bad_cast and std::bad_typeid are thrown.  Put those two documents together, and you get my earlier statements.  Granted, it's just a well informed guess, but a guess I'm pretty confident in.
>
> Leaving those functions in should be harmless, other than the size of the dead code.  There are also all the private type_info classes that are dead weight if RTTI is turned off.
>
> While it may make sense to remove those functions, that's probably best left for a different code review.


Thanks, added that to my arsenal of references :)


http://reviews.llvm.org/D20677





More information about the cfe-commits mailing list