@@ -1056,12 +1056,10 @@ SparcTargetLowering::LowerCall_32(TargetLowering::CallLoweringInfo &CLI,
10561056 // If the callee is a GlobalAddress node (quite common, every direct call is)
10571057 // turn it into a TargetGlobalAddress node so that legalize doesn't hack it.
10581058 // Likewise ExternalSymbol -> TargetExternalSymbol.
1059- unsigned TF = isPositionIndependent () ? SparcMCExpr::VK_WPLT30
1060- : SparcMCExpr::VK_WDISP30;
10611059 if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
1062- Callee = DAG.getTargetGlobalAddress (G->getGlobal (), dl, MVT::i32 , 0 , TF );
1060+ Callee = DAG.getTargetGlobalAddress (G->getGlobal (), dl, MVT::i32 , 0 );
10631061 else if (ExternalSymbolSDNode *E = dyn_cast<ExternalSymbolSDNode>(Callee))
1064- Callee = DAG.getTargetExternalSymbol (E->getSymbol (), MVT::i32 , TF );
1062+ Callee = DAG.getTargetExternalSymbol (E->getSymbol (), MVT::i32 );
10651063
10661064 // Returns a chain & a flag for retval copy to use
10671065 SDVTList NodeTys = DAG.getVTList (MVT::Other, MVT::Glue);
@@ -1390,12 +1388,10 @@ SparcTargetLowering::LowerCall_64(TargetLowering::CallLoweringInfo &CLI,
13901388 // Likewise ExternalSymbol -> TargetExternalSymbol.
13911389 SDValue Callee = CLI.Callee ;
13921390 bool hasReturnsTwice = hasReturnsTwiceAttr (DAG, Callee, CLI.CB );
1393- unsigned TF = isPositionIndependent () ? SparcMCExpr::VK_WPLT30
1394- : SparcMCExpr::VK_WDISP30;
13951391 if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
1396- Callee = DAG.getTargetGlobalAddress (G->getGlobal (), DL, PtrVT, 0 , TF );
1392+ Callee = DAG.getTargetGlobalAddress (G->getGlobal (), DL, PtrVT, 0 );
13971393 else if (ExternalSymbolSDNode *E = dyn_cast<ExternalSymbolSDNode>(Callee))
1398- Callee = DAG.getTargetExternalSymbol (E->getSymbol (), PtrVT, TF );
1394+ Callee = DAG.getTargetExternalSymbol (E->getSymbol (), PtrVT);
13991395
14001396 // Build the operands for the call instruction itself.
14011397 SmallVector<SDValue, 8 > Ops;
0 commit comments