]> granicus.if.org Git - llvm/commit
Use shouldAssumeDSOLocal in classifyGlobalReference.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Jan 2017 15:02:31 +0000 (15:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Jan 2017 15:02:31 +0000 (15:02 +0000)
commitdbe38eb99396af20c07df04f76b79e38fa7ce2a9
tree835b86f8998d25fef9fb8f49beb153614954fc84
parent10559c6633f42815de0523bc0ce3bfc57c36fb2e
Use shouldAssumeDSOLocal in classifyGlobalReference.

And teach shouldAssumeDSOLocal that ppc has no copy relocations.

The resulting code handle a few more case than before. For example, it
knows that a weak symbol can be resolved to another .o file, but it
will still be in the main executable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/TargetMachine.cpp
test/CodeGen/PowerPC/fast-isel-load-store.ll
test/CodeGen/PowerPC/mcm-obj.ll