OSDN Git Service

Debug Info: use createAndAddDIE to wrap around "new DIE" in DwarfDebug.
authorManman Ren <manman.ren@gmail.com>
Tue, 29 Oct 2013 01:03:01 +0000 (01:03 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 29 Oct 2013 01:03:01 +0000 (01:03 +0000)
commit8ef9cebb68d6305e197c3e0b8369aa3c57570bbf
tree01858547b864a27ba7a43ad4088965604af63eac
parentbbdd02cc303d0f38f7739b64f419d645ca17b533
Debug Info: use createAndAddDIE to wrap around "new DIE" in DwarfDebug.

This commit ensures DIEs are constructed within a compile unit and
immediately added to their parents.

Reviewed off-list by Eric.

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