[Debug Info] unique MDNodes in the enum types of each compile unit.
authorManman Ren <manman.ren@gmail.com>
Mon, 28 Jul 2014 23:04:20 +0000 (23:04 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 28 Jul 2014 23:04:20 +0000 (23:04 +0000)
commit2bd885aa97002006428895a471cc2a99a1dcd8e1
treecc331889aebb78cf0e03d8f72a6878bfee4f1994
parent6514cc5cb56741ed53c480a773887208bfb750c6
[Debug Info] unique MDNodes in the enum types of each compile unit.

The enum types array by design contains pointers to MDNodes rather than DIRefs.
Unique them when handling the enum types in DwarfDebug.

rdar://17628609

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214139 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/enum-types.ll [new file with mode: 0644]