[PATCH] D34668: llvm-nm: Add suport for symbol demangling (-C/--demangle)
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 11:19:29 PDT 2017
Sam Clegg <sbc at chromium.org> writes:
>> MachO isn't the only target with a prefix of '_'. Shouldn't this be
>> inspecting `DataLayout::getGlobalPrefix()` for that instead?
>>
>>
>
> I didnt't know about that. Any idea how I would go about getting a
> DataLayout object? Seems like its linked to the IR system and nm is
> working with libObject binaries.
I don't think you can in general. Lets handle just MachO for now.
Given that the .bc file now has a symbol table, it would be really nice
to refactor the libraries so that llvm-nm is not a 16 MB binary (and
there would never be a DataLayout in it).
Cheers,
Rafael
More information about the llvm-commits
mailing list