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)
commit0cb0e797f0e7b13bed123e14b538abbcbb4709b4
tree68555382bb50ec87c99350a916b2dba54f09c82a
parent81bf65619f565510552f650b118e0098e047f1a4
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255043 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalValue.h
test/Transforms/GlobalOpt/available_externally_global_ctors.ll [new file with mode: 0644]