This patch adds -emscripten-cxx-exceptions-whitelist option to WebAssemblyLowerEmscriptenExceptions pass. This options is the list of function names in which Emscripten-style exception handling is enabled. Depends on D22958.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenExceptions.cpp | ||
---|---|---|
346 | I assume that an empty whitelist means "every function catches exceptions." That's a little bit counterintuitive; I think it would be much clearer just to have an explicit bool (maybe that just gets set in runOnModule) that means "always allow exceptions". |
I assume that an empty whitelist means "every function catches exceptions." That's a little bit counterintuitive; I think it would be much clearer just to have an explicit bool (maybe that just gets set in runOnModule) that means "always allow exceptions".