[SelectionDAG] Support multiple dangling debug info for one value
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Wed, 21 Mar 2018 09:44:34 +0000 (09:44 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Wed, 21 Mar 2018 09:44:34 +0000 (09:44 +0000)
commit5c25f8853682fca39f08b24be846bfbf18006cee
tree8b95edb99ca9f8d9cd88fdf16cdc9e1d73d2941a
parent95f7572c6f57facd227e882a9d775c348d8e03ee
[SelectionDAG] Support multiple dangling debug info for one value

Summary:
When building the selection DAG we sometimes need to postpone
the handling of a dbg.value until the value it should refer to
is created. This is done by using the DanglingDebugInfoMap.
In the past this map has been limited to hold one dangling
dbg.value per value. This patch removes that restriction.

Reviewers: aprantl, rnk, probinson, vsk

Reviewed By: aprantl

Subscribers: Ka-Ka, llvm-commits, JDevlieghere

Tags: #debug-info

Differential Revision: https://reviews.llvm.org/D44610

llvm-svn: 328084
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
llvm/test/DebugInfo/X86/sdag-dangling-dbgvalue.ll