]> granicus.if.org Git - clang/commit
[Driver] Use shared singleton instance of DriverOptTable
authorIlya Biryukov <ibiryukov@google.com>
Wed, 4 Sep 2019 14:26:28 +0000 (14:26 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 4 Sep 2019 14:26:28 +0000 (14:26 +0000)
commitf521f90c4479af43412ed1125fd33a8f332083fe
tree27ac6793c01f7431fd1480204a40cc0d5bf0d8a5
parent4d178a6e93cda6c8ad640d4b52002c594ad4d69e
[Driver] Use shared singleton instance of DriverOptTable

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.

Reviewers: gribozavr, sammccall

Reviewed By: sammccall

Subscribers: kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67163

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370908 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Driver.h
include/clang/Driver/Options.h
lib/Driver/Driver.cpp
lib/Driver/DriverOptions.cpp
lib/Frontend/CompilerInvocation.cpp
lib/FrontendTool/ExecuteCompilerInvocation.cpp
lib/Tooling/InterpolatingCompilationDatabase.cpp
lib/Tooling/Tooling.cpp
tools/clang-check/ClangCheck.cpp
tools/driver/cc1as_main.cpp
tools/driver/driver.cpp