search for: armcxxabi

Displaying 3 results from an estimated 3 matches for "armcxxabi".

2014 Apr 02
5
[LLVMdev] [lld] adding demangler for symbol resolution
...available, the string is not a mangled symbol, or demangling was turned off (--no-demangle). Then, you just wrap a demangle() call around every use. Are you mentioning that one demangle function in LinkingContext ? One demangle method wouldnt work as the ItaniumABI uses one method to demangle, ARMCXXABI uses a different method, and MSVC uses a different one. I am not sure about Mach-O here ? > The __cxa_demangle function has an odd interface that requires a malloc allocated block. Having demangle() return a std::string means yet another allocation. We might not care if this is just used in d...
2014 Apr 03
2
[LLVMdev] [lld] adding demangler for symbol resolution
...nality into demangle, so clients just always use: > str = ctx.demangle(sym); > and it returns the input string if a demangler is not available or is disabled. > Yes. This would be much preferrred. >> One demangle method wouldnt work as the ItaniumABI uses one method to demangle, ARMCXXABI uses a different method, and MSVC uses a different one. I am not sure about Mach-O here ? > Given that, how can we make an lld tool that cross builds the same as it on the native system? Are you thinking of writing your own demangler? Or use whatever one is natively available, and fall back to...
2014 Apr 02
5
[LLVMdev] [lld] adding demangler for symbol resolution
Hi Nick, Bigcheese, When lld is used to link C++ code, it would be required to demangle symbol names by default/user driven option. The Gnu linker has the following options :- --demangle=[style] --no-demangle I found that clang/llvm-symbolizer use __cxx_demangle function. I would think that lld also need to call the same function, and I think the way we want to demangle is to have the