This is an archive of the discontinued LLVM Phabricator instance.

[lld][ELF] --warn-backrefs: Fix symbol name demangling
Needs ReviewPublic

Authored by nullptr.cpp on Mar 22 2021, 8:37 PM.

Details

Summary

In the warning of --warn-backrefs, symbol names should be:

  • demangled with --demangle
  • mangled with --no-demangle

Diff Detail

Event Timeline

nullptr.cpp created this revision.Mar 22 2021, 8:37 PM
nullptr.cpp requested review of this revision.Mar 22 2021, 8:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2021, 8:37 PM

I have noticed this inconsistency but have intended to not make a change because I actually find working with the original names easier...
When fixing internal projects for the backward reference problems, the original names allow me to use readelf -Ws something | grep ... more efficiently.

(Also I don't think new test files are needed. Reusing the existing should be fine.)

Use the existing test