Sink PrevCU updating into DwarfUnit::addRange to ensure consistency
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Sep 2014 23:13:01 +0000 (23:13 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Sep 2014 23:13:01 +0000 (23:13 +0000)
commit01c14f6de08b120e43fa1a742d943d2cc2253c71
treeea5e10db7d97d1cc3b18a06409475a21ae69191c
parent9e0dae166f9616e6b33b1bc7d8f493cb5b5e4f1b
Sink PrevCU updating into DwarfUnit::addRange to ensure consistency

So that the two operations in DwarfDebug couldn't get separated (because
I accidentally separated them in some work in progress), put them
together. While we're here, move DwarfUnit::addRange to
DwarfCompileUnit, since it's not relevant to type units.

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