mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Propagate debug loc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107710 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -953,7 +953,8 @@ LowerGlobalAddress(SDValue Op, SelectionDAG &DAG, const SPUSubtarget *ST) {
|
||||
EVT PtrVT = Op.getValueType();
|
||||
GlobalAddressSDNode *GSDN = cast<GlobalAddressSDNode>(Op);
|
||||
const GlobalValue *GV = GSDN->getGlobal();
|
||||
SDValue GA = DAG.getTargetGlobalAddress(GV, PtrVT, GSDN->getOffset());
|
||||
SDValue GA = DAG.getTargetGlobalAddress(GV, Op.getDebugLoc(),
|
||||
PtrVT, GSDN->getOffset());
|
||||
const TargetMachine &TM = DAG.getTarget();
|
||||
SDValue Zero = DAG.getConstant(0, PtrVT);
|
||||
// FIXME there is no actual debug info here
|
||||
@@ -1232,7 +1233,7 @@ SPUTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
||||
const GlobalValue *GV = G->getGlobal();
|
||||
EVT CalleeVT = Callee.getValueType();
|
||||
SDValue Zero = DAG.getConstant(0, PtrVT);
|
||||
SDValue GA = DAG.getTargetGlobalAddress(GV, CalleeVT);
|
||||
SDValue GA = DAG.getTargetGlobalAddress(GV, dl, CalleeVT);
|
||||
|
||||
if (!ST->usingLargeMem()) {
|
||||
// Turn calls to targets that are defined (i.e., have bodies) into BRSL
|
||||
|
Reference in New Issue
Block a user