This is an archive of the discontinued LLVM Phabricator instance.

[clang codegen] Add dso_local/hidden/etc. markings to VTT declarations
ClosedPublic

Authored by efriedma on Jun 23 2022, 5:34 PM.

Details

Summary

We were marking definitions, but not declarations. Marking declarations makes computing the address more efficient.

Fixes issue reported at https://discourse.llvm.org/t/63090

Diff Detail

Event Timeline

efriedma created this revision.Jun 23 2022, 5:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2022, 5:34 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
efriedma requested review of this revision.Jun 23 2022, 5:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2022, 5:34 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay accepted this revision.Jun 23 2022, 5:38 PM

Looks great!

This revision is now accepted and ready to land.Jun 23 2022, 5:38 PM
justincady accepted this revision.Jun 24 2022, 6:53 AM

LGTM!

Just to double check I tested this exact patch locally with the setup that found the problem. I confirmed it resolved that issue.

This revision was landed with ongoing or failed builds.Jun 24 2022, 9:59 AM
This revision was automatically updated to reflect the committed changes.