[clang][modules] NFCI: Avoid unnecessary serialization logic for non-affecting files
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 2 Nov 2022 02:19:06 +0000 (19:19 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Wed, 2 Nov 2022 02:23:02 +0000 (19:23 -0700)
commita13122c612a653026b2ac220e220c50783c3aa82
tree941f0422b83821409fe53f07a029ad9c71f334ef
parentaa2b05f0b9800225d44f64d445aaa19063e67e4a
[clang][modules] NFCI: Avoid unnecessary serialization logic for non-affecting files

This patch delays some `ASTWriter` logic until after we've checked whether the source location entry we're serializing as an affecting file or not.

Depends on D137214.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D137216
clang/lib/Serialization/ASTWriter.cpp