AsmPrinter: Return added DIE from DIE::addChild()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 27 May 2015 22:59:03 +0000 (22:59 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 27 May 2015 22:59:03 +0000 (22:59 +0000)
commit59be554de468b5ce92e74618c6bb741b5cf671fd
tree089c085263fb3fa94bff69136e94cae5898ace07
parent49e9f44cb16b1f8b438b717b1c65e19ffe1824df
AsmPrinter: Return added DIE from DIE::addChild()

Change `DIE::addChild()` to return a reference to the just-added node,
and update consumers to use it directly.  An upcoming commit will
abstract away (and eventually change) the underlying storage of
`DIE::Children`.

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