summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-20 00:48:35 +0000
committerDan Gohman <gohman@apple.com>2010-04-20 00:48:35 +0000
commite450d7444df4a430b2afae8ebf69d152b8f41e17 (patch)
treea5efd35fcee157ae61b7b6aa8a86fcafb01d22af /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parentaedb8a35355f451564975865694314ea20c8a37c (diff)
downloadbcm5719-llvm-e450d7444df4a430b2afae8ebf69d152b8f41e17.tar.gz
bcm5719-llvm-e450d7444df4a430b2afae8ebf69d152b8f41e17.zip
Sink DebugLoc handling out of SelectionDAGISel into FastISel and
SelectionDAGBuilder, where it doesn't have to be as complicated. llvm-svn: 101848
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index e21bc796b95..470689bd06f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -614,7 +614,11 @@ void SelectionDAGBuilder::AssignOrderingToNode(const SDNode *Node) {
}
void SelectionDAGBuilder::visit(const Instruction &I) {
+ CurDebugLoc = I.getDebugLoc();
+
visit(I.getOpcode(), I);
+
+ CurDebugLoc = DebugLoc();
}
void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) {
OpenPOWER on IntegriCloud