refactor demangle of llvm-nm .
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
llvm::demangle is used by a lot of ELF tools to assume ELF style mangling where there is no extra prefix. I think many don't expect demangling ._Zxxxx symbols.
If XCOFF needs ., I think separate functions are needed. You can add a new utility function or extending demangle with an optional parameter about XCOFF.
Comment Actions
I tried in gnu-c++filt in linux which is elf format in linux OS. it demangle ._Zxxxx symbols.
bash> /opt/at15.0/bin/powerpc64le-linux-gnu-c++filt ._ZL5func0v
.func0()
Comment Actions
This patch should have been created using a GitHub Pull Request. See the big red notice at the top of the page...