Fix a performance bug in the Linker.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 4 May 2013 05:05:18 +0000 (05:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 4 May 2013 05:05:18 +0000 (05:05 +0000)
commitcfb320f5f97717c309832e0f92b97835526977a8
tree8a89e3e8c55dcdb9d712937ea79da2936fcaf7a5
parent2e013028f2dd99527044d50808a44ae89d6ba537
Fix a performance bug in the Linker.

Now that we hava a convinient place to keep it, remeber the set of
identified structs as we merge modules.

This speeds up the linking of all the bitcode files in clang with the
gold plugin and -plugin-opt=emit-llvm (i.e., link only, no codegen) from
5:25 minutes to 13.6 seconds!

Patch by Xiaofei Wan!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181104 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Linker.h
lib/Linker/LinkModules.cpp