3 Commits

Author SHA1 Message Date
Chuanqi Xu
1ecc5ae13b [Serialization] Register Speical types before register decls
We will only regsiter top level types and decls in ASTWriter and
we will register the sub types and decls during the process of writing
types and decls. So that the ID for the types in the sub level can be
different if the writing decl process changes the order of the to-be-
emitted type queues. This is not ideal since it causes unnecessary
changes especially in no transitive changes model.

This patch migrates the issue by regsitering special types before
regsitering decls. This make sure that the special types in the 2nd
top level can be registered early than the decls. But it might still be
problematic if there are more levels in the special types. Luckily we
just don't have such special types.
2024-06-24 11:08:46 +08:00
Chuanqi Xu
34ba1c043a [NFC] [Serialization] Emit Name for DECL_EXPORT 2024-05-28 14:27:48 +08:00
Chuanqi Xu
a4f75ec730
[C++20] [Modules] Don't record implicitly declarations to BMI by default (#93459)
I found we may insert unused implciit declarations like AArch SVE
declarations by default on AArch64 due to we will insert that by
default. But it should be completely redundant and this patch tries to
remove that.
2024-05-28 09:36:30 +08:00