This is an archive of the discontinued LLVM Phabricator instance.

[NFC] refactor XCOFFObjectFile::getImportFileTable.
ClosedPublic

Authored by DiggerLin on Sep 20 2022, 6:16 AM.

Details

Summary

1.refactor with XCOFFObjectFile::getImportFileTable with function getSectionFileOffsetToRawData instead of getLoaderSectionAddress

  1. delete the function getLoaderSectionAddress.

Diff Detail

Event Timeline

DiggerLin created this revision.Sep 20 2022, 6:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 6:16 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
DiggerLin requested review of this revision.Sep 20 2022, 6:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 6:16 AM
jhenderson accepted this revision.Sep 20 2022, 6:41 AM

Looks good, thanks!

You mentioned in another ticket that using the new function could cause other error paths to be hit. That's fine, and I don't think you need to specifically test them for the new type that uses the function, but it does mean that this ticket isn't technically a [NFC] so shouldn't be labelled as such. You could say why it isn't NFC in the commit body, to explain why you haven't added additional testing, for example, if you want.

This revision is now accepted and ready to land.Sep 20 2022, 6:41 AM
Esme accepted this revision.Sep 20 2022, 7:52 PM

LGTM. Thx!

This revision was landed with ongoing or failed builds.Sep 21 2022, 9:51 AM
This revision was automatically updated to reflect the committed changes.