aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-06-24 11:03:55 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-06-24 11:08:46 +0800
commit1ecc5ae13b9061cfb37ef0c409c8a4fc4bad42c9 (patch)
tree6cc3b09c186cf5eccc19e75a34228cec24a4d308 /clang/lib/CodeGen/CodeGenModule.cpp
parent8f49dab19e861baeb0d87452e652ed97d3883d1a (diff)
downloadllvm-1ecc5ae13b9061cfb37ef0c409c8a4fc4bad42c9.zip
llvm-1ecc5ae13b9061cfb37ef0c409c8a4fc4bad42c9.tar.gz
llvm-1ecc5ae13b9061cfb37ef0c409c8a4fc4bad42c9.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions