[cfe-dev] Choosing the unwinder / C++ low-level libraries in Clang

David Chisnall David.Chisnall at cl.cam.ac.uk
Thu Jul 23 09:58:28 PDT 2015


On 23 Jul 2015, at 17:48, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
> 
>> 
>> I thought the unwinder only used C++ features that didn’t depend on the C++ runtime library (no exceptions, no RTTI) and only depended on some header-only things from elsewhere?
> 
> It does, but that wasn't the only layering violation. EHABI introduces a dependency in the wrong direction for some kinds of catch descriptors: https://github.com/llvm-mirror/libunwind/blob/master/src/Unwind-EHABI.cpp#L142

That looks commented out - presumably it could be made a weak symbol and only used if a C++ runtime is linked in?

David





More information about the cfe-dev mailing list