Improve performance of LinkModules when linking with modules with large numbers of...
authorJames Molloy <james.molloy@arm.com>
Wed, 27 Mar 2013 10:23:32 +0000 (10:23 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 27 Mar 2013 10:23:32 +0000 (10:23 +0000)
commitcfe99ef9dc734f29d4bab3cc1b91a64add4500c9
tree7f8fe9c1993af9551e4fd86e2f6b2ec4e178c9d7
parente49230895d9c666b84beaa748259fbf1f6715122
Improve performance of LinkModules when linking with modules with large numbers of functions which link lazily. Instead of creating and destroying function prototypes irrespective of if they are used, only create them if they are used.

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