This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Pass -plugin-opt=no-new-pass-manager to the linker
AbandonedPublic

Authored by MaskRay on Dec 8 2020, 11:20 PM.

Details

Summary

So that if -fno-new-pass-manager is requested for an
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=on build, ld.bfd/gold/ld.lld can know to
use the legacy PM.

Actually we only need to pass an option when the specified option is different
from the configured default, but that is difficult to test. So we unconditionally
pass a linker option when -f[no-]new-pass-manager is specified

Depends on D92916

Diff Detail

Event Timeline

MaskRay requested review of this revision.Dec 8 2020, 11:20 PM
MaskRay created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2020, 11:20 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aeubanks accepted this revision.Dec 8 2020, 11:58 PM
This revision is now accepted and ready to land.Dec 8 2020, 11:58 PM
MaskRay updated this revision to Diff 310439.Dec 9 2020, 12:07 AM
MaskRay edited the summary of this revision. (Show Details)

Improve

MaskRay abandoned this revision.Dec 9 2020, 4:58 PM

I just merged this into D92915