mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-25 05:34:59 +00:00
Use isPositionIndependent predicate. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9dfcab0b93
commit
a0e42848da
@ -326,7 +326,7 @@ TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
|
||||
return false;
|
||||
|
||||
// If the code is position independent we will have to add a base register.
|
||||
if (RM == Reloc::PIC_)
|
||||
if (isPositionIndependent())
|
||||
return false;
|
||||
|
||||
// Otherwise we can do it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user