mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-14 00:23:44 +00:00
Use isPositionIndependent(). NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85a9211eaf
commit
c01c8ebe61
@ -1976,8 +1976,8 @@ SDValue SparcTargetLowering::makeAddress(SDValue Op, SelectionDAG &DAG) const {
|
|||||||
SDLoc DL(Op);
|
SDLoc DL(Op);
|
||||||
EVT VT = getPointerTy(DAG.getDataLayout());
|
EVT VT = getPointerTy(DAG.getDataLayout());
|
||||||
|
|
||||||
// Handle PIC mode first.
|
// Handle PIC mode first. SPARC needs a got load for every variable!
|
||||||
if (getTargetMachine().getRelocationModel() == Reloc::PIC_) {
|
if (isPositionIndependent()) {
|
||||||
// This is the pic32 code model, the GOT is known to be smaller than 4GB.
|
// This is the pic32 code model, the GOT is known to be smaller than 4GB.
|
||||||
SDValue HiLo = makeHiLoPair(Op, SparcMCExpr::VK_Sparc_GOT22,
|
SDValue HiLo = makeHiLoPair(Op, SparcMCExpr::VK_Sparc_GOT22,
|
||||||
SparcMCExpr::VK_Sparc_GOT10, DAG);
|
SparcMCExpr::VK_Sparc_GOT10, DAG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user