Please sign in to comment.
Rework exception matching.
- Remove typeinfo since thing break if the compiler decides to use the system one and merge its contents into typeinfo.h - Make each type_info object have a vtable with the same layout as the public vtable in libstdc++'s <typeinfo>. This fixes code (e.g. libobjc2's Objective-C++ exception handling) which rely on being able to add new types. - Add some extra tests I suspect exceptions catching pointer-to-member types will not work correctly, but I've never seen anyone do this and don't have any tests for it.
- Loading branch information...
Showing with 218 additions and 108 deletions.
|@@ -1,26 +0,0 @@|
|- * Standard type info class. The layout of this class is specified by the|
|- * ABI.|
|- class type_info|
|- * Virtual destructor. This class must have one virtual function to|
|- * ensure that it has a vtable.|
|- virtual ~type_info();|
|- bool operator==(const type_info &) const;|
|- bool operator!=(const type_info &) const;|
|- bool before(const type_info &) const;|
|- const char* name() const;|
|- type_info(const type_info& rhs);|
|- type_info& operator= (const type_info& rhs);|
|- const char *__type_name;|
Oops, something went wrong.