]> granicus.if.org Git - llvm/commit
[NFC][PowerPC] Refactor classifyGlobalReference
authorJinsong Ji <jji@us.ibm.com>
Fri, 20 Sep 2019 18:21:07 +0000 (18:21 +0000)
committerJinsong Ji <jji@us.ibm.com>
Fri, 20 Sep 2019 18:21:07 +0000 (18:21 +0000)
commit3292388576e56fbd63875c003470bada319e60a7
tree517297929b6bebe5e570bf8bf756dfc07773ff1a
parent28742d52e2e47751c7dec6344db54b5fc87640e9
[NFC][PowerPC] Refactor classifyGlobalReference

We always(and only) check the NLP flag after calling
classifyGlobalReference to see whether it is accessed
indirectly.

Refactor to code to use isGVIndirectSym instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCFastISel.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h