[llvm-dwp] Deduplicate type units
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 14 Dec 2015 07:42:00 +0000 (07:42 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 14 Dec 2015 07:42:00 +0000 (07:42 +0000)
commitcd49eb3fa17f9f19cfffa9437eb4db10dc11d43c
tree917c58a1914641e214cd77855d36c2d620ca5351
parentea8e65febc2fa4d560b36bc503ceab409f942582
[llvm-dwp] Deduplicate type units

It's O(N^2) because it does a simple walk through the existing types to
find duplicates, but that will be fixed in a follow-up commit to use a
mapping data structure of some kind.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255482 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-dwp/Inputs/type_dedup/a.dwo [new file with mode: 0644]
test/tools/llvm-dwp/Inputs/type_dedup/b.dwo [new file with mode: 0644]
test/tools/llvm-dwp/X86/type_dedup.test [new file with mode: 0644]
tools/llvm-dwp/llvm-dwp.cpp