[PATCH] D71738: [lld][WebAssembly] Add libcall symbols to the link when LTO is being used.

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 17:28:30 PST 2019


sbc100 created this revision.
Herald added subscribers: llvm-commits, jfb, dexonsmith, steven_wu, sunfish, aheejin, hiraditya, jgravelle-google, inglorion, mehdi_amini, dschuff.
Herald added a project: LLVM.

This code is copied almost verbatim from the equivalent change to the
ELF linker:

- https://reviews.llvm.org/D50017
- https://reviews.llvm.org/D50475

The upshot is that libraries containing libcall (such as compiler-rt
and libc) can be compiled with LTO.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71738

Files:
  lld/test/wasm/lto/Inputs/libcall-archive.ll
  lld/test/wasm/lto/libcall-archive.ll
  lld/wasm/Driver.cpp
  lld/wasm/InputFiles.h
  lld/wasm/Symbols.cpp
  lld/wasm/Symbols.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71738.234814.patch
Type: text/x-patch
Size: 5373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191220/8a0531c7/attachment.bin>


More information about the llvm-commits mailing list