[lld] r275258 - Reverted r275257 "[ELF] - Implement extern "c++" version script tag"

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 10:36:20 PDT 2016


On 13 July 2016 at 12:57, George Rimar <grimar at accesssoftek.com> wrote:
> But we do not have any "demangler" yet right ?

We don't have it yet.


> I used stupid but workable solution when wrote that patch (I am windows user):
>
> std::string demanglemy(StringRef Name) {
>   if (Name == "_Z3foov")
>     return "foo()";
>   if (Name == "_Z3barv")
>     return "bar()";
>   if (Name == "_Z3zedv")
>     return "zed()";
>   return Name;
> }
>
> Not sure, but may be we can use that checks for testcase ?
> #ifdef windows....
>

It is not just windows, there is the issue of the freebsd one
producing different results. That is why I  think we need a cmake
check that tries to demangle a few names.


Cheers,
Rafael


More information about the llvm-commits mailing list