[PATCH] D49208: [WebAssembly] Update WebAssemblyLowerEmscriptenEHSjLj to support separate compilation.

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 11 16:59:31 PDT 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, dexonsmith, sunfish, aheejin, jgravelle-google, mehdi_amini, dschuff.

Previously this pass would assume that it was running over the
entire program.  This meant it could get away with creating the
two helper functions:

- setThrew
- setTempRet0

Instead we now assume these will be provided at link time.  In
emscripten this will most likely be done via libcxxabi.

Additionally we previously created three global variable:

- __THREW__
- _threwValue
- __tempRet0

These are now allow assumed to be available at link time, but
we also have to handle the case where they exist in the module
being compiled (e.g. when we are doing LTO with libcxxabi).


Repository:
  rL LLVM

https://reviews.llvm.org/D49208

Files:
  lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  tools/llvm-dis/llvm-dis.cpp
  tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49208.155086.patch
Type: text/x-patch
Size: 12037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180711/96369dbb/attachment.bin>


More information about the llvm-commits mailing list