AsmPrinter: Stop inheriting from DIE
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 2 Aug 2015 20:54:50 +0000 (20:54 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 2 Aug 2015 20:54:50 +0000 (20:54 +0000)
commit5bb95798bcec333e0540e762bfc8b5b7af83dbb2
treeef6d3cdad1d78167a2e444af9698283bc9206015
parent401c02a7ed795645d25c5d0f2f740e6519e01f98
AsmPrinter: Stop inheriting from DIE

Change `DIELoc` and `DIEBlock` to stop inheriting from `DIE`, instead
inheriting from `DIEValueList` to share the value storage API.  This
awkward bit of code-sharing was also fairly confusing: neither `DIELoc`
nor `DIEBlock` represents a `DIE`, so why would they inherit from it?

Aside from the API cleanup, this should improve debug info memory usage
in the backend, since it shaves five pointers off of every `DIELoc` and
`DIEBlock`.  I haven't bothered to measure the savings, though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243858 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/DIE.h