diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-01-09 10:43:35 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-01-09 10:48:43 +0800 |
commit | 08f957808e5f7e44b11d5e9015925955fe1e9d32 (patch) | |
tree | f2296518f94db01d17e01f97015502f2c070b6d8 /clang/lib/Basic/Module.cpp | |
parent | ee1be282241b1253847e663af000f7082b7f03a3 (diff) | |
download | llvm-08f957808e5f7e44b11d5e9015925955fe1e9d32.zip llvm-08f957808e5f7e44b11d5e9015925955fe1e9d32.tar.gz llvm-08f957808e5f7e44b11d5e9015925955fe1e9d32.tar.bz2 |
[C++20] [Modules] Don't generate global ctors/dtors for variables which are available externally
Closes https://github.com/llvm/llvm-project/issues/59765.
Currently we will generate the global ctor/dtor for variables in
importing modules. It will cause multiple initialization/destructions.
It makes no sense. This patch tries to not generate global ctor/dtor for
variables which are available externally. Note that the variables in
header units and clang modules won't be available externally by default.
Reviewed By: iains
Differential Revision: https://reviews.llvm.org/D140867
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions