summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-27 22:34:19 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-27 22:34:19 +0000
commit7b4646184bf94d2ab08acf159246ad1872147b4d (patch)
tree1038a426fc49c751e106c5e4296a91748eaba8e2 /llvm/lib
parent15a7b8e26a44f01b9982e6b371f8448dd9400e93 (diff)
downloadbcm5719-llvm-7b4646184bf94d2ab08acf159246ad1872147b4d.tar.gz
bcm5719-llvm-7b4646184bf94d2ab08acf159246ad1872147b4d.zip
The code that cleans up multiple, isomorphic types has a subtle error that
manifests itself when building LLVM with LTO. <rdar://problem/10913281> llvm-svn: 151576
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 400380926f6..59c9d7016bf 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -580,7 +580,11 @@ void ModuleLinker::computeTypeMapping() {
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
@@ -610,8 +614,8 @@ void ModuleLinker::computeTypeMapping() {
if (!SrcStructTypesSet.count(DST))
TypeMap.addTypeMapping(DST, ST);
}
-
-
+#endif
+
// 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
OpenPOWER on IntegriCloud