回复:Re: Public the interface for cxa_demangler.cpp

Hi, Erik

It seems that, your partitial Demangler is implemented basing on C++. I have to link with c++ runtime libraries if I want to use it. (i.e. you are using new/delete etc). However, I won’t link with the c++ runtime libraries as I am C project. I notice that, the demangler implemented inside llvm runtime(cxa_demangler.cpp) is carefully implemented that not depending on the c++ runtime.
Would you please add the C interface and remove the dependent on the C++ runtime so that, the C project could use it ?

Thank you.

发件人:Erik Pilkington erik.pilkington@gmail.com
收件人:bluedream_zqs@sina.com, cfe-dev cfe-dev@lists.llvm.org
主题:Re: [cfe-dev] Public the interface for cxa_demangler.cpp
日期:2018年04月13日 20点54分

No plans as of yet! I never planned to export the AST in this way, doing so would probably require some surgery (ie, make all the identifiers it uses reserved). I very recently landed r329951, which provides a simple opaque API to the AST for the copy of the demangler in llvm. Maybe this is enough for your use case? What kind of analysis are you planning on performing?

Thanks,
Erik