Push memory ownership of DwarfUnits into clients of DwarfFile.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 22 Apr 2014 22:39:41 +0000 (22:39 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 22 Apr 2014 22:39:41 +0000 (22:39 +0000)
commit875f90e5279507cb66c1073cba57c8355b4c7096
tree4f1656e89bab29f0978d4edb3cfd1a44a4ed6bd7
parent423575405d250b5e95d8118226ca67b36c644cc5
Push memory ownership of DwarfUnits into clients of DwarfFile.

This prompted me to push references through most of DwarfDebug. Sorry
for the churn.

Honestly it's a bit silly that we're passing around units all over the
place like that anyway and I think it's mostly due to the DIE attribute
adding utility functions being utilities in DwarfUnit. I should have
another go at moving them out of DwarfUnit...

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