summaryrefslogtreecommitdiff
path: root/test/DebugInfo
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-29 00:53:03 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-29 00:53:03 +0000
commit1a5e787f701c45ac2487d400faf6f6d4def6dcef (patch)
treeef1d9648cbd8294600348e49184d3ea3a8c80272 /test/DebugInfo
parent39f62fa3dd1f683288e67ba58bef785b2dcaa98c (diff)
downloadllvm-1a5e787f701c45ac2487d400faf6f6d4def6dcef.tar.gz
llvm-1a5e787f701c45ac2487d400faf6f6d4def6dcef.tar.bz2
llvm-1a5e787f701c45ac2487d400faf6f6d4def6dcef.tar.xz
Debug Info: add a helper function createAndAddDIE.
It wraps around "new DIE(" and handles the bookkeeping part of the newly-created DIE. It adds the DIE to its parent, and calls insertDIE if necessary. It makes sure that bookkeeping is done at the earliest time and we should not see parentless DIEs if all constructions of DIEs go through this helper function. Later on, we can use an allocator for DIE allocation, and will only need to change createAndAddDIE instead of modifying all the "new DIE(". Reviewed off-list by Eric. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
0 files changed, 0 insertions, 0 deletions