This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Use shared singleton instance of DriverOptTable
ClosedPublic

Authored by ilya-biryukov on Sep 4 2019, 6:06 AM.

Details

Summary

This significantly reduces the time required to run clangd tests, by
~10%.

Should also have an effect on other tests that run command-line parsing
multiple times inside a single invocation.

Event Timeline

ilya-biryukov created this revision.Sep 4 2019, 6:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2019, 6:06 AM
Herald added a subscriber: kadircet. · View Herald Transcript
sammccall accepted this revision.Sep 4 2019, 6:24 AM
This revision is now accepted and ready to land.Sep 4 2019, 6:24 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2019, 7:27 AM

Thanks, this is useful for clang-scan-deps too!