]> granicus.if.org Git - llvm/commit
Revert "LTOCodeGenerator: turns linkonce(_odr) into weak_(odr) when present "MustPres...
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 5 May 2016 05:14:20 +0000 (05:14 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 5 May 2016 05:14:20 +0000 (05:14 +0000)
commit3556cc73fe6ec3152f21e3087310097834e32c52
tree4b4baad28b125db527fc3fa491f0366eab8980be
parent0fa87136c7787d1c8ce1aa38b65c97cea86af141
Revert "LTOCodeGenerator: turns linkonce(_odr) into weak_(odr) when present "MustPreserve" set"

This reverts commit r267644. Turning linkonce_odr into weak_odr is
a sementic change 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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268606 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/LTOCodeGenerator.cpp
test/tools/lto/hide-linkonce-odr.ll