diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-21 23:59:16 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-21 23:59:16 +0000 |
commit | 32854e272746fd97870276bb70740d0a7f9e6341 (patch) | |
tree | 68e92f6b4108e8f34f1c94221c4265ae7da6631e /llvm/lib/Linker | |
parent | 46cb6f1b51d0f54a133995f31cb98f110ac69b81 (diff) | |
download | bcm5719-llvm-32854e272746fd97870276bb70740d0a7f9e6341.tar.gz bcm5719-llvm-32854e272746fd97870276bb70740d0a7f9e6341.zip |
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.
llvm-svn: 155300
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 765fcc88235..630289b2bdc 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/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()); |