This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Remove unsupported ELF format reloc handling
ClosedPublic

Authored by urnathan on Apr 21 2023, 11:04 AM.

Details

Summary

RewriteInstance's reloc handling uses dyncast to select between the 4 ELF formats. But everywhere else RewriteInstance only handles LE64 ELF, so this dyncasting is unnecessary. Just cast to the expected ELF type and be done with it.

Diff Detail

Event Timeline

urnathan created this revision.Apr 21 2023, 11:04 AM
Herald added a project: Restricted Project. · View Herald Transcript
urnathan requested review of this revision.Apr 21 2023, 11:04 AM
This revision is now accepted and ready to land.Apr 21 2023, 11:59 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2023, 10:10 AM