AArch64: be more careful resorting to inefficient addressing for weak vars.
authorTim Northover <Tim.Northover@arm.com>
Thu, 28 Feb 2013 14:36:31 +0000 (14:36 +0000)
committerTim Northover <Tim.Northover@arm.com>
Thu, 28 Feb 2013 14:36:31 +0000 (14:36 +0000)
commit6ff20f205b2aa126b268bcada9920f56715161be
treeeee57d62d7c938a0dbe738a9be3297f7d0334f6e
parent5366ab21f4595d0e3888b2d23f38469da2465b8d
AArch64: be more careful resorting to inefficient addressing for weak vars.

If an otherwise weak var is actually defined in this unit, it can't be
undefined at runtime so we can use normal global variable sequences (ADRP/ADD)
to access it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176259 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/extern-weak.ll