diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-21 13:54:51 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-21 13:54:51 -0800 |
commit | 572bba39dcadf613afa586320d83aa3fc48a3cf8 (patch) | |
tree | 02a6ca36459cdc7455b52f4e5f105b9cd0a72519 /lib/Transforms/NaCl/PNaClABISimplify.cpp | |
parent | baa51c9f0de42aa1194a5b93400b82f3b071bca1 (diff) |
support building projects with both setjmp and c++ exceptions, by avoiding modifying setjmp|longjmp in the exceptions lowering code
Diffstat (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp')
-rw-r--r-- | lib/Transforms/NaCl/PNaClABISimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp index f73d6c1784..6a0aeae700 100644 --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp @@ -47,10 +47,10 @@ void llvm::PNaClABISimplifyAddPreOptPasses(PassManager &PM) { PM.add(createLowerInvokePass()); // Remove landingpad blocks made unreachable by LowerInvoke. PM.add(createCFGSimplificationPass()); - - PM.add(createLowerEmSetjmpPass()); // XXX EMSCRIPTEN . Note, only if no exceptions } + PM.add(createLowerEmSetjmpPass()); // XXX EMSCRIPTEN . Note, only if no exceptions + #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. |