This is an archive of the discontinued LLVM Phabricator instance.

[AIX] llvm-link support big archive.
ClosedPublic

Authored by DiggerLin on May 4 2022, 10:00 AM.

Details

Summary

Use object::Archive::create so that the returned archive object has a dynamic type of either Archive or BigArchive.

Diff Detail

Event Timeline

DiggerLin created this revision.May 4 2022, 10:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 10:00 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
DiggerLin requested review of this revision.May 4 2022, 10:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 10:00 AM

It's unclear why the old code doesn't support big archives while the new code supports big archives. Can you explain it in the summary and the comment?

DiggerLin edited the summary of this revision. (Show Details)EditedMay 4 2022, 2:21 PM

It's unclear why the old code doesn't support big archives while the new code supports big archives. Can you explain it in the summary and the comment?

I have explained it in the sumary @MaskRay

MaskRay accepted this revision.May 4 2022, 4:39 PM

[AIX] llvm-link support big archive.

You can say [AIX] Make llvm-link support big archives

This revision is now accepted and ready to land.May 4 2022, 4:39 PM

The summary can probably be made clearer with something like

Use object::Archive::create so that the returned archive object has a dynamic type of either Archive or BigArchive.

jhenderson accepted this revision.May 5 2022, 4:20 AM

LGTM, with @MaskRay's summary change suggestion.

Would it make sense to make the object::Archive constructor private, to stop code from directly using it instead of using the create function? Could be a follow-up patch, if you want.

DiggerLin edited the summary of this revision. (Show Details)May 5 2022, 6:14 AM
This revision was landed with ongoing or failed builds.May 16 2022, 1:29 PM
This revision was automatically updated to reflect the committed changes.