This is an archive of the discontinued LLVM Phabricator instance.

Compute and Print Type and Section columns in "llvm-nm -f sysv" output.
AbandonedPublic

Authored by Sunil_Srivastava on Feb 14 2019, 4:49 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2019, 4:49 PM

To clarify, this patch is only attempting to fix ELF files.

mtrent accepted this revision.Feb 22 2019, 11:16 PM

Built it locally, stepped through the nm code for Mach-O files, didn't see any unintended problems. Elf changes reviewed visually only, they look mechanical. The name for "getNMSectionTagAndName" seems imperfect to me, as the Mach-O symbol type code isn't strictly about the section (A, I, -); that said, sysv is not a common format for viewing Mach-O, so I just offer it as a minor point to consider.

tools/llvm-nm/llvm-nm.cpp
1100 ↗(On Diff #186946)

Nit: Should this be getNMClassTagAndSectionName?

1243 ↗(On Diff #186946)

Nit: See above

This revision is now accepted and ready to land.Feb 22 2019, 11:16 PM
This revision was automatically updated to reflect the committed changes.

This checkin has been reverted due to an ASAN buildbot failure.

I will be looking at that and updating this page after the fix.

This revision is now accepted and ready to land.Feb 26 2019, 11:27 AM