Just had a good implement of RTTI. I had a brainwave which is that if I always create the Clang aggregate TU, then I can then query it for everything I need, so types that have a Clang type can just delegate to Clang for their RTTI implementation. Most of the rest are simple "Use the RTTI vtables and add a simple null-terminated string" thing. This means that in principle, I can now implement dynamic_cast, typeid(), and begin work on EH.
I haven't exactly written many tests for it, though...
But when EH is done, then I feel like I will be on much more solid ground. Some MS ABI support would be nice too.
No comments:
Post a Comment