[LLVMdev] RFC: Exception Handling Proposal II

Renato Golin rengolin at systemcall.org
Thu Nov 25 16:39:49 PST 2010


2010/11/25 Reid Kleckner <reid.kleckner at gmail.com>:
> Can someone elaborate on the mailing list?  I still don't really
> understand this aspect.

These are just mangled globals that define types in C++ (I have no
idea about other languages).

$ c++filt _ZTIi
typeinfo for int

$ c++filt _ZTIPKc
typeinfo for char const*

So, if the typeinfo for the exception thrown is the same (ex. _ZTIi),
the comparison match because they point to the same global.

cheers,
--renato




More information about the llvm-dev mailing list