DWARF type hashing: Handle multiple (including recursive) references to the same...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 21 Oct 2013 18:59:40 +0000 (18:59 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 21 Oct 2013 18:59:40 +0000 (18:59 +0000)
commit3baa3c37ce2cd7db7a4840e66f22a08ce1702787
tree45a04a70e0926df6d3d1e2dbdb2763a4350bb6c8
parent79de3d7b3aae9c7cc1038a3223dc96dbdafbeb3f
DWARF type hashing: Handle multiple (including recursive) references to the same type

This uses a map, keeping the type DIE numbering separate from the DIEs
themselves - alternatively we could do things the way GCC does if we
want to add an integer to the DIE type to record the numbering there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIEHash.cpp
lib/CodeGen/AsmPrinter/DIEHash.h
unittests/CodeGen/DIEHashTest.cpp