Weak non-function symbols were being accessed directly, which is
authorEric Christopher <echristo@gmail.com>
Fri, 20 Nov 2015 20:51:31 +0000 (20:51 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 20 Nov 2015 20:51:31 +0000 (20:51 +0000)
commit3de08c62a1888cb7394b65b2f9b88e7e36530ea0
treee20e1835467fe153cec346070ba45b97de4df337
parent177d040724e6b79d3a7b5f96e2c4cbd2ca6c19d3
Weak non-function symbols were being accessed directly, which is
incorrect, as the chosen representative of the weak symbol may not live
with the code in question. Always indirect the access through the TOC
instead.

Patch by Kyle Butt!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253708 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCFastISel.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/mcm-13.ll [new file with mode: 0644]