diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-09-11 23:05:06 -0700 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2021-09-13 14:15:25 -0700 |
commit | b7b4ebbcfa463a7fae61dca7cec30c5b747bdec8 (patch) | |
tree | 9b70b0a9a192f0ede37a6f3975d0022d6bcfad9c /llvm/lib/Support/APInt.cpp | |
parent | 095bbc3a5a75f2e576b6efeadae34aaca693084e (diff) | |
download | llvm-b7b4ebbcfa463a7fae61dca7cec30c5b747bdec8.zip llvm-b7b4ebbcfa463a7fae61dca7cec30c5b747bdec8.tar.gz llvm-b7b4ebbcfa463a7fae61dca7cec30c5b747bdec8.tar.bz2 |
[WebAssembly] Rethrow longjmp in EH handling if EmSjLj is enabled
This is a fix on top of D106525's Case 2. In D106525, in
`runEHOnFunction` which handles Emscripten EH, We rethrow `longjmp` only
when the module has any usage of `setjmp` or `longjmp`. But now Wasm
object files are linked using wasm-ld, the module this pass sees is not
the whole program, and even if this module does not contain any
`longjmp`, another file can contain it and can be linked with the
current module. This enables the rethrowing of longjmp whenever
Emscripten SjLj is enabled, regardless of whether it is used in this
module or not.
Reviewed By: dschuff
Differential Revision: https://reviews.llvm.org/D109670
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions