This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add option to disable -clear-ast-before-backend
ClosedPublic

Authored by aeubanks on Oct 19 2021, 3:19 PM.

Details

Summary

Some downstream users have plugins that -clear-ast-before-backend may
affect. Add an option to opt out.

Diff Detail

Event Timeline

aeubanks created this revision.Oct 19 2021, 3:19 PM
aeubanks requested review of this revision.Oct 19 2021, 3:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2021, 3:19 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
dblaikie accepted this revision.Oct 19 2021, 4:40 PM

Sounds good - possible flag def improvement with BoolOption.

clang/include/clang/Driver/Options.td
5315–5317

Could you use/would it be handy to use a BoolOption for this?

This revision is now accepted and ready to land.Oct 19 2021, 4:40 PM
aeubanks updated this revision to Diff 380847.Oct 19 2021, 8:41 PM

use BoolOption
td files are very hard to use...

This revision was landed with ongoing or failed builds.Oct 19 2021, 8:52 PM
This revision was automatically updated to reflect the committed changes.