diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-21 13:51:39 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-21 13:51:39 -0800 |
commit | e47b58ae8a841d7cdf9bb026595e6b668a84d7d8 (patch) | |
tree | fece7271c5a8a82290a990dfa23c007fd2780ac6 /lib/Transforms | |
parent | 9aa6f0b0a3f17bca736d71d1f159ee4cb98b0600 (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.cpp | 2 |
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. |