mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user