summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/__init__.py
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-02-05 23:37:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-02-05 23:37:13 +0000
commit520a37f52ff159636e25eb30178aa14f0499bddc (patch)
tree577816c71a89f0fbd74d65d5c04071f9d39635e7 /lldb/packages/Python/lldbsuite/__init__.py
parent53ae55a207ad3c9b94297bcc2682db1ec0f8b43b (diff)
downloadbcm5719-llvm-520a37f52ff159636e25eb30178aa14f0499bddc.tar.gz
bcm5719-llvm-520a37f52ff159636e25eb30178aa14f0499bddc.zip
[modules] Fix handling of initializers for templated global variables.
For global variables with unordered initialization that are instantiated within a module, we previously did not emit the global (or its initializer) at all unless it was used in the importing translation unit (and sometimes not even then!), leading to misbehavior and link errors. We now emit the initializer for an instantiated global variable with unordered initialization with side-effects in a module into every translation unit that imports the module. This is unfortunate, but mostly matches the behavior of a non-modular compilation and seems to be the best that we can reasonably do. llvm-svn: 353240
Diffstat (limited to 'lldb/packages/Python/lldbsuite/__init__.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud