]> granicus.if.org Git - llvm/commit
AsmPrinter: Change DIEValueList to a subclass of DIE, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 2 Aug 2015 20:42:45 +0000 (20:42 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 2 Aug 2015 20:42:45 +0000 (20:42 +0000)
commitbc3c2c319c899218bbcae2f934cf98d1e05e964f
treea986654bb9d2938591674646f0fe77902fe0f9a0
parent1e95eedbab2739f5e4090d683729ea1394adf3db
AsmPrinter: Change DIEValueList to a subclass of DIE, NFC

Rewrite `DIEValueList` as a subclass of `DIE`, renaming its API to match
`DIE`'s.  This is preparation for changing `DIEBlock` and `DIELoc` to
stop inheriting from `DIE` and inherit directly from `DIEValueList`.

I thought about leaving this as a has-a relationship (and changing
`DIELoc` and `DIEBlock` to also have-a `DIEValueList`), but that seemed
to require a fair bit more boilerplate and I think it needed more
changes to the `DwarfUnit` API than this will.

No functionality change intended here.

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