This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Mark -L as visible in Flang
ClosedPublic

Authored by erjin on Aug 24 2023, 11:43 AM.

Diff Detail

Event Timeline

erjin created this revision.Aug 24 2023, 11:43 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
erjin requested review of this revision.Aug 24 2023, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 11:43 AM
erjin updated this revision to Diff 553217.Aug 24 2023, 11:45 AM

update test

awarzynski accepted this revision.Aug 25 2023, 4:11 AM

LGTM, thank you!

This revision is now accepted and ready to land.Aug 25 2023, 4:11 AM
erjin added a comment.Aug 25 2023, 8:20 AM

LGTM, thank you!

Thanks for the review!

bryanpkc added inline comments.Aug 25 2023, 8:57 AM
clang/include/clang/Driver/Options.td
821

Question: How does Clang not give an error for -L if this wasn't visible to Clang?

erjin added inline comments.Aug 25 2023, 9:28 AM
clang/include/clang/Driver/Options.td
821

If there is no Visibility specified, the default Visibility is the ClangOption. If we want to add an extra option, the visibility needs both.

bryanpkc added inline comments.Aug 25 2023, 9:47 AM
clang/include/clang/Driver/Options.td
821

Thanks for the explanation!

This revision was automatically updated to reflect the committed changes.