aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-07-15 06:48:56 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-07-15 06:48:56 +0000
commit664040a03c17f432a127a35013eeb6b6a26e41fb (patch)
treeb72a5db989931163367d322b4bccb110c7c8cce8
parentd634bcbc89667be8793da2fefd1ab6655880e1c9 (diff)
downloadexternal_llvm-664040a03c17f432a127a35013eeb6b6a26e41fb.zip
external_llvm-664040a03c17f432a127a35013eeb6b6a26e41fb.tar.gz
external_llvm-664040a03c17f432a127a35013eeb6b6a26e41fb.tar.bz2
Disable aliases on all platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108417 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/MergeFunctions.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp
index 55d5e2a..1813a59 100644
--- a/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/lib/Transforms/IPO/MergeFunctions.cpp
@@ -603,6 +603,10 @@ static void ThunkGToF(Function *F, Function *G) {
}
static void AliasGToF(Function *F, Function *G) {
+ // Darwin will trigger llvm_unreachable if asked to codegen an alias
+ return ThunkGToF(F, G);
+
+#if 0
if (!G->hasExternalLinkage() && !G->hasLocalLinkage() && !G->hasWeakLinkage())
return ThunkGToF(F, G);
@@ -614,6 +618,7 @@ static void AliasGToF(Function *F, Function *G) {
GA->setVisibility(G->getVisibility());
G->replaceAllUsesWith(GA);
G->eraseFromParent();
+#endif
}
static bool fold(std::vector<Function *> &FnVec, unsigned i, unsigned j) {