diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-06 22:08:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-06 22:08:15 +0000 |
commit | a3ca21b22892f62359c944d27315c60b06a0df59 (patch) | |
tree | 9c621ff7e5230e2f17c5826ae43d591e74bafe6b /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 128bfb7643b7cc6fc97f990c5223117e8518c40f (diff) | |
download | bcm5719-llvm-a3ca21b22892f62359c944d27315c60b06a0df59.tar.gz bcm5719-llvm-a3ca21b22892f62359c944d27315c60b06a0df59.zip |
Propagate debug loc.
llvm-svn: 107710
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 2213d54dab6..d56a8921f12 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/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; } |