aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
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
commitde09e922a6a82ff48d31328606f691591ae8fa19 (patch)
tree886287ca04ed32ed2a0f1a1e1d28b4064ed749fb /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent30377a614c8d671f0da10e59416afbe2a282a2ff (diff)
downloadexternal_llvm-de09e922a6a82ff48d31328606f691591ae8fa19.zip
external_llvm-de09e922a6a82ff48d31328606f691591ae8fa19.tar.gz
external_llvm-de09e922a6a82ff48d31328606f691591ae8fa19.tar.bz2
Propagate debug loc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 2213d54..d56a892 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -2414,7 +2414,8 @@ void TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
if (ConstraintLetter != 'n') {
int64_t Offs = GA->getOffset();
if (C) Offs += C->getZExtValue();
- Ops.push_back(DAG.getTargetGlobalAddress(GA->getGlobal(),
+ Ops.push_back(DAG.getTargetGlobalAddress(GA->getGlobal(),
+ C->getDebugLoc(),
Op.getValueType(), Offs));
return;
}