aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-21 13:51:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-21 13:51:39 -0800
commite47b58ae8a841d7cdf9bb026595e6b668a84d7d8 (patch)
treefece7271c5a8a82290a990dfa23c007fd2780ac6 /lib/Transforms
parent9aa6f0b0a3f17bca736d71d1f159ee4cb98b0600 (diff)
disable pnacl internalization of everything except for _start, as emscripten supports arbitrary entry points
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/NaCl/PNaClABISimplify.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp
index d695f61203..b9c66b6806 100644
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp
@@ -42,10 +42,12 @@ void llvm::PNaClABISimplifyAddPreOptPasses(PassManager &PM) {
PM.add(createCFGSimplificationPass());
}
+#if 0 // EMSCRIPTEN: we allow arbitrary symbols to be preserved
// Internalize all symbols in the module except _start, which is the only
// symbol a stable PNaCl pexe is allowed to export.
const char *SymbolsToPreserve[] = { "_start" };
PM.add(createInternalizePass(SymbolsToPreserve));
+#endif
// LowerExpect converts Intrinsic::expect into branch weights,
// which can then be removed after BlockPlacement.