diff options
author | Ben Langmuir <blangmuir@apple.com> | 2023-05-02 13:55:46 -0700 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2023-05-03 12:07:46 -0700 |
commit | 8fe8d69ddf881db70cb8df31e614a06e633e2c5f (patch) | |
tree | 39132e13a6ad66975b72e56160445d5eb10f0a74 /clang-tools-extra/clangd | |
parent | 3b01fa264c36c1c7bb293f001579e0f459a92b84 (diff) | |
download | llvm-8fe8d69ddf881db70cb8df31e614a06e633e2c5f.tar.gz |
[clang][deps] Make clang-scan-deps write modules in raw format
We have no use for debug info for the scanner modules, and writing raw
ast files speeds up scanning ~15% in some cases. Note that the compile
commands produced by the scanner will still build the obj format (if
requested), and the scanner can *read* obj format pcms, e.g. from a PCH.
rdar://108807592
Differential Revision: https://reviews.llvm.org/D149693
Diffstat (limited to 'clang-tools-extra/clangd')
-rw-r--r-- | clang-tools-extra/clangd/Compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Compiler.cpp b/clang-tools-extra/clangd/Compiler.cpp index f242db44b431..7b93353cab1f 100644 --- a/clang-tools-extra/clangd/Compiler.cpp +++ b/clang-tools-extra/clangd/Compiler.cpp @@ -73,7 +73,7 @@ void disableUnsupportedOptions(CompilerInvocation &CI) { // Always default to raw container format as clangd doesn't registry any other // and clang dies when faced with unknown formats. CI.getHeaderSearchOpts().ModuleFormat = - PCHContainerOperations().getRawReader().getFormat().str(); + PCHContainerOperations().getRawReader().getFormats().front().str(); CI.getFrontendOpts().Plugins.clear(); CI.getFrontendOpts().AddPluginActions.clear(); |