summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-11-01 17:58:39 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-11-01 17:58:39 +0000
commit9fb6e1a0370eec770aa43bdcd8db0697f0ee128c (patch)
treee4d29581819e789ede99beb600665b302b8d3159 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent56db9d6bec6eb1c638d37b01c4d6bf0ed696d1eb (diff)
downloadbcm5719-llvm-9fb6e1a0370eec770aa43bdcd8db0697f0ee128c.tar.gz
bcm5719-llvm-9fb6e1a0370eec770aa43bdcd8db0697f0ee128c.zip
LTO: Apply global DCE to ThinLTO modules at LTO opt level 0.
This is necessary because DCE is applied to full LTO modules. Without this change, a reference from a dead ThinLTO global to a dead full LTO global will result in an undefined reference at link time. This problem is only observable when --gc-sections is disabled, or when targeting COFF, as the COFF port of lld requires all symbols to have a definition even if all references are dead (this is consistent with link.exe). This change also adds an EliminateAvailableExternally pass at -O0. This is necessary to handle the situation on Windows where a non-prevailing copy of a linkonce_odr function has an SEH filter function; any such filters must be DCE'd because they will contain a call to the llvm.localrecover intrinsic, passing as an argument the address of the function that the filter belongs to, and llvm.localrecover requires this function to be defined locally. Fixes PR35142. Differential Revision: https://reviews.llvm.org/D39484 llvm-svn: 317108
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud