summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Blackfin
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-06 22:08:15 +0000
committerDevang Patel <dpatel@apple.com>2010-07-06 22:08:15 +0000
commita3ca21b22892f62359c944d27315c60b06a0df59 (patch)
tree9c621ff7e5230e2f17c5826ae43d591e74bafe6b /llvm/lib/Target/Blackfin
parent128bfb7643b7cc6fc97f990c5223117e8518c40f (diff)
downloadbcm5719-llvm-a3ca21b22892f62359c944d27315c60b06a0df59.tar.gz
bcm5719-llvm-a3ca21b22892f62359c944d27315c60b06a0df59.zip
Propagate debug loc.
llvm-svn: 107710
Diffstat (limited to 'llvm/lib/Target/Blackfin')
-rw-r--r--llvm/lib/Target/Blackfin/BlackfinISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Blackfin/BlackfinISelLowering.cpp b/llvm/lib/Target/Blackfin/BlackfinISelLowering.cpp
index 9a922560714..93ce9d8e169 100644
--- a/llvm/lib/Target/Blackfin/BlackfinISelLowering.cpp
+++ b/llvm/lib/Target/Blackfin/BlackfinISelLowering.cpp
@@ -143,7 +143,7 @@ SDValue BlackfinTargetLowering::LowerGlobalAddress(SDValue Op,
DebugLoc DL = Op.getDebugLoc();
const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
- Op = DAG.getTargetGlobalAddress(GV, MVT::i32);
+ Op = DAG.getTargetGlobalAddress(GV, DL, MVT::i32);
return DAG.getNode(BFISD::Wrapper, DL, MVT::i32, Op);
}
@@ -356,7 +356,7 @@ BlackfinTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
// turn it into a TargetGlobalAddress node so that legalize doesn't hack it.
// Likewise ExternalSymbol -> TargetExternalSymbol.
if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
- Callee = DAG.getTargetGlobalAddress(G->getGlobal(), MVT::i32);
+ Callee = DAG.getTargetGlobalAddress(G->getGlobal(), dl, MVT::i32);
else if (ExternalSymbolSDNode *E = dyn_cast<ExternalSymbolSDNode>(Callee))
Callee = DAG.getTargetExternalSymbol(E->getSymbol(), MVT::i32);
OpenPOWER on IntegriCloud