Remove DwarfDebug::PrevSection, PrevCU is sufficient for handling address range holes.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Sep 2014 22:56:36 +0000 (22:56 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Sep 2014 22:56:36 +0000 (22:56 +0000)
commit9e0dae166f9616e6b33b1bc7d8f493cb5b5e4f1b
tree2ecfc7853b6fd5bce04b17f94918c4bea6bb331c
parent589d2fc893fd4d206d5ba82ad4c26482b6602cac
Remove DwarfDebug::PrevSection, PrevCU is sufficient for handling address range holes.

PrevSection/PrevCU are used to detect holes in the address range of a CU
to ensure the DW_AT_ranges does not include those holes. When we see a
function with no debug info, though it may be in the same range as the
prior and subsequent functions, there should be a gap in the CU's
ranges. By setting PrevCU to null in that case, the range would not be
extended to cover the gap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217466 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp