aboutsummaryrefslogtreecommitdiff
path: root/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-21 23:59:16 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-21 23:59:16 +0000
commitd46575f1908b1fb9950e610a1f36733893ad44b1 (patch)
treeac9f67df8d0aedfedcfef7e2e61e7486286d531c /lib/Linker/LinkModules.cpp
parent2dbd7844e831caa107c6c9c57889f3d89b843ef3 (diff)
Add a flag to the struct type finder to collect only those types which have
names. This saves collecting types we normally don't care about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r--lib/Linker/LinkModules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index 765fcc8823..630289b2bd 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.cpp
@@ -595,12 +595,12 @@ void ModuleLinker::computeTypeMapping() {
// example. When the source module got loaded into the same LLVMContext, if
// it had the same type, it would have been renamed to "%foo.42 = { i32 }".
std::vector<StructType*> SrcStructTypes;
- SrcM->findUsedStructTypes(SrcStructTypes);
+ SrcM->findUsedStructTypes(SrcStructTypes, true);
SmallPtrSet<StructType*, 32> SrcStructTypesSet(SrcStructTypes.begin(),
SrcStructTypes.end());
std::vector<StructType*> DstStructTypes;
- DstM->findUsedStructTypes(DstStructTypes);
+ DstM->findUsedStructTypes(DstStructTypes, true);
SmallPtrSet<StructType*, 32> DstStructTypesSet(DstStructTypes.begin(),
DstStructTypes.end());