[all-commits] [llvm/llvm-project] 590b1e: [clang][modules] Only serialize info for locally-i...
Jan Svoboda via All-commits
all-commits at lists.llvm.org
Fri Oct 25 15:00:29 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 590b1e31546572b62040066f90a35893a1b64f29
https://github.com/llvm/llvm-project/commit/590b1e31546572b62040066f90a35893a1b64f29
Author: Jan Svoboda <jan_svoboda at apple.com>
Date: 2024-10-25 (Fri, 25 Oct 2024)
Changed paths:
M clang/include/clang/Lex/Preprocessor.h
M clang/lib/Lex/HeaderSearch.cpp
M clang/lib/Serialization/ASTWriter.cpp
Log Message:
-----------
[clang][modules] Only serialize info for locally-included headers (#113718)
I noticed that some PCM files contain `HeaderFileInfo` for headers only
included in a dependent PCM file, which is wasteful.
This patch changes the logic to only write headers that are included
locally. This makes the PCM files smaller and saves some superfluous
deserialization of `HeaderFileInfo` triggered by
`Preprocessor::alreadyIncluded()`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list