DebugInfo: Just store the DIE by value in the DwarfUnit
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 28 Apr 2014 21:14:27 +0000 (21:14 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 28 Apr 2014 21:14:27 +0000 (21:14 +0000)
commit9feea1a5a1fccedd6fbddf0b3d5a0f67d8dcb572
tree8fafb60e347a064b73c7e061676ef773358c6fa5
parentc5211fe18a229166f7416e3393a67bf204c9544a
DebugInfo: Just store the DIE by value in the DwarfUnit

Since all 4 ctor calls in DwarfDebug just pass in a trivially
constructed DIE with the right tag type, sink the tag selection down
into the Dwarf*Unit ctors (removing the argument entirely from callers
in DwarfDebug) and initialize the DIE member in DwarfUnit.

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