This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] [NFC] Use a single vector to store all symbol mappings.
ClosedPublic

Authored by jacek on Jul 30 2023, 10:35 AM.

Details

Summary

This is a preparation for D149095. D156190 introduced AllMappingSymbols, which is close to what CHPE map. CHPE map operates on ranges that may cross sections. This patch uses a single vector for all mappings and leaves handling of mapping from other sections up to getMappingSymbolKind.

Diff Detail

Event Timeline

jacek created this revision.Jul 30 2023, 10:35 AM
Herald added a reviewer: MaskRay. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: mgrang. · View Herald Transcript
jacek requested review of this revision.Jul 30 2023, 10:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2023, 10:35 AM
This revision is now accepted and ready to land.Jul 31 2023, 12:07 AM
This revision was landed with ongoing or failed builds.Aug 1 2023, 12:26 PM
This revision was automatically updated to reflect the committed changes.
foad added subscribers: Zeson, foad.Aug 2 2023, 8:29 AM

Hi @jacek, this causes a few test failures if you configure with -DLLVM_ENABLE_EXPENSIVE_CHECKS=ON -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=CSKY:

Failed Tests (7):
  LLVM :: DebugInfo/CSKY/dwarf-csky-relocs.ll
  LLVM :: MC/CSKY/3e3r1.s
  LLVM :: MC/CSKY/801.s
  LLVM :: MC/CSKY/basic-16bit.s
  LLVM :: MC/CSKY/basic.s
  LLVM :: MC/CSKY/fpuv2.s
  LLVM :: MC/CSKY/fpuv3.s

@Zeson FYI.

jacek added a comment.Aug 2 2023, 12:14 PM

Hi @jacek, this causes a few test failures if you configure with -DLLVM_ENABLE_EXPENSIVE_CHECKS=ON -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=CSKY:

I think I can see what's going wrong, sections like .csky.attributes may interleave with other sections in MappingSymbols. I will revert the patch and implement it differently, sorry about that.