This is an archive of the discontinued LLVM Phabricator instance.

[XCOFF] Enable available_externally linkage for functions.
ClosedPublic

Authored by Esme on Jul 25 2023, 1:12 AM.

Details

Summary

D80642 added support for emitting AvailableExternally Linkage on AIX.
However, an assertion of "Trying to get csect representation of this symbol but none was set." occurred when a function is declared as available_externally. This is due to we missing to generate a csect for the function. This patch fixes it.

Diff Detail

Event Timeline

Esme created this revision.Jul 25 2023, 1:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2023, 1:12 AM
Esme requested review of this revision.Jul 25 2023, 1:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2023, 1:12 AM

LGTM; thanks! Please request cherry-pick into LLVM 17 release branch.

This revision is now accepted and ready to land.Jul 25 2023, 9:44 AM
shchenz accepted this revision as: shchenz.Jul 25 2023, 5:49 PM

LGTM too. Thanks for fixing.

This revision was landed with ongoing or failed builds.Jul 25 2023, 7:48 PM
This revision was automatically updated to reflect the committed changes.