manifests itself when building LLVM with LTO.
<rdar://problem/
10913281>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151576
91177308-0d34-0410-b5e6-
96231b3b80d8
if (GlobalValue *DGV = getLinkedToGlobal(I))
TypeMap.addTypeMapping(DGV->getType(), I->getType());
}
if (GlobalValue *DGV = getLinkedToGlobal(I))
TypeMap.addTypeMapping(DGV->getType(), I->getType());
}
+
+#if 0
+ // FIXME: This doesn't play well with LTO. We cannot compile LLVM with this
+ // enabled. <rdar://problem/10913281>.
+
// Incorporate types by name, scanning all the types in the source module.
// At this point, the destination module may have a type "%foo = { i32 }" for
// example. When the source module got loaded into the same LLVMContext, if
// Incorporate types by name, scanning all the types in the source module.
// At this point, the destination module may have a type "%foo = { i32 }" for
// example. When the source module got loaded into the same LLVMContext, if
if (!SrcStructTypesSet.count(DST))
TypeMap.addTypeMapping(DST, ST);
}
if (!SrcStructTypesSet.count(DST))
TypeMap.addTypeMapping(DST, ST);
}
// Don't bother incorporating aliases, they aren't generally typed well.
// Now that we have discovered all of the type equivalences, get a body for
// Don't bother incorporating aliases, they aren't generally typed well.
// Now that we have discovered all of the type equivalences, get a body for