diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-05-05 05:14:24 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-05-05 05:14:24 +0000 |
commit | 022b5bcb7a19e51c854a39adbd00e25ef1de83b7 (patch) | |
tree | f0b214f245dd8e00b090bc4d15bbfb58e7e635ae /lldb/packages/Python/lldbsuite/test/python_api/frame | |
parent | 752ffe9c5f7cab673d4b9a94276e68d4191c601d (diff) | |
download | bcm5719-llvm-022b5bcb7a19e51c854a39adbd00e25ef1de83b7.tar.gz bcm5719-llvm-022b5bcb7a19e51c854a39adbd00e25ef1de83b7.zip |
LTOCodeGenerator: add linkonce(_odr) to "llvm.compiler.used" when present in "MustPreserve" set
If the linker requested to preserve a linkonce function, we should
honor this even if we drop all uses.
We explicitely avoid turning them into weak_odr (unlike the first
version of this patch in r267644), because the codegen can be
different on Darwin: because of `llvm::canBeOmittedFromSymbolTable()`
we may emit the symbol as weak_def_can_be_hidden instead of
weak_definition.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 268607
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame')
0 files changed, 0 insertions, 0 deletions