[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)
commitbd1628a595b27f05c130c0b5127eee32abdf0e38
treeefe29d55919599356a88a8f4b76ad2baec669cb8
parentef7150925f0772469aba11745df9b625c9f6d05d
[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

llvm-svn: 214139
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/enum-types.ll [new file with mode: 0644]