Move the "findUsedStructTypes" functionality outside of the Module class.
authorBill Wendling <isanbard@gmail.com>
Fri, 3 Aug 2012 00:30:35 +0000 (00:30 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 3 Aug 2012 00:30:35 +0000 (00:30 +0000)
commit573e97326766359d3a9747eed7b7d47b6c33fa0f
tree673f5f53704610e9160435ff0d435e8b8e600524
parente94ac8871a1ac79bece57335d2abece0feed9c02
Move the "findUsedStructTypes" functionality outside of the Module class.

The "findUsedStructTypes" method is very expensive to run. It needs to be
optimized so that LTO can run faster. Splitting this method out of the Module
class will help this occur. For instance, it can keep a list of seen objects so
that it doesn't process them over and over again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161228 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Module.h
include/llvm/TypeFinder.h [new file with mode: 0644]
lib/Linker/LinkModules.cpp
lib/Transforms/IPO/StripSymbols.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/CMakeLists.txt
lib/VMCore/Module.cpp
lib/VMCore/TypeFinder.cpp [new file with mode: 0644]