commit | 8ba3aa7f9c5048c31172788f98ad2b90ffad565a | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Apr 20 00:48:35 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Apr 20 00:48:35 2010 +0000 |
tree | 684d0f201d34df6e4c12aa63b2cd7eb4680a8926 | |
parent | 8a39ed75ec57c7fabde318c0d45fac014ac287f4 [diff] [blame] |
Sink DebugLoc handling out of SelectionDAGISel into FastISel and SelectionDAGBuilder, where it doesn't have to be as complicated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101848 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index e21bc79..470689b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -614,7 +614,11 @@ } void SelectionDAGBuilder::visit(const Instruction &I) { + CurDebugLoc = I.getDebugLoc(); + visit(I.getOpcode(), I); + + CurDebugLoc = DebugLoc(); } void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) {