[clang][serialization] NFCI: Avoid re-reading input file info
commit66cf61abd849072d04da96408b122eea436dbc90
authorJan Svoboda <jan_svoboda@apple.com>
Fri, 2 Dec 2022 04:00:56 +0000 (1 20:00 -0800)
committerJan Svoboda <jan_svoboda@apple.com>
Fri, 2 Dec 2022 04:07:01 +0000 (1 20:07 -0800)
tree8ad5a83661eccd2680e78da1cff51b31cdcbe705
parent935a07ed21434825a96eb6d3acd2163edd0abe88
[clang][serialization] NFCI: Avoid re-reading input file info

This patch resolves a FIXME that points out an inefficiency in first deserializing the input file info and the whole input file, which redundantly deserializes the input file info again.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D137192
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ModuleFile.h
clang/lib/Serialization/ASTReader.cpp