This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Error when wasm EH is used with Emscripten EH/SjLj
ClosedPublic

Authored by aheejin on Apr 27 2021, 3:23 PM.

Details

Summary
  • Error out when both Emscripten EH and wasm EH are used together, i.e., both -enable-emscripten-cxx-exceptions and -exception-model=wasm are given together. This will not happen if you use Emscripten, but this can happen when you call llc manually with wrong set of arguments.
  • Currently we don't yet support using wasm EH with Emscripten SjLj. Unlike -enable-emscripten-cxx-exceptions which is turned on only when you use emcc -s DISABLE_EXCEPTION_CATCHING=0, -enable-emscripten-sjlj is turned on by Emscripten by default. So we error out only when it is turned on and setjmp or longjmp is actually used.

Diff Detail

Event Timeline

aheejin created this revision.Apr 27 2021, 3:23 PM
aheejin requested review of this revision.Apr 27 2021, 3:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2021, 3:23 PM
tlively accepted this revision.Apr 27 2021, 3:28 PM
This revision is now accepted and ready to land.Apr 27 2021, 3:28 PM
This revision was landed with ongoing or failed builds.Apr 27 2021, 4:08 PM
This revision was automatically updated to reflect the committed changes.