Add Available Externally linkage type to isWeakForLinker()
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 8 Dec 2015 19:01:29 +0000 (19:01 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 8 Dec 2015 19:01:29 +0000 (19:01 +0000)
commit37c25fa1d15d2c1fd888b3e77c1928547e7542d1
tree208e8655b476c58b46c2604bdbdc8113776a8a6c
parent5f02b777c6c04eae7b62967fa830bf8edfcd700b
Add Available Externally linkage type to isWeakForLinker()

Per LangRef: "Globals with available_externally linkage are
allowed to be discarded at will, and are otherwise the same
as linkonce_odr", since linkonce_odr is in this list it makes
sense to have available_externally there as well.

Reviewers: rafael

Differential Revision: http://reviews.llvm.org/D15323

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 255043
llvm/include/llvm/IR/GlobalValue.h
llvm/test/Transforms/GlobalOpt/available_externally_global_ctors.ll [new file with mode: 0644]