[PATCH] D91637: [WebAssembly] Only emit indirect function table import if needed

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 08:52:46 PST 2020


wingo created this revision.
Herald added subscribers: llvm-commits, ecnelises, arphaman, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.
wingo requested review of this revision.
Herald added a subscriber: aheejin.

The indirect function table, synthesized by the linker, is needed if and
only if there are TABLE_INDEX relocs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91637

Files:
  llvm/include/llvm/MC/MCContext.h
  llvm/include/llvm/MC/MCSymbolWasm.h
  llvm/include/llvm/Object/Wasm.h
  llvm/lib/MC/MCContext.cpp
  llvm/lib/MC/WasmObjectWriter.cpp
  llvm/lib/Object/WasmObjectFile.cpp
  llvm/test/MC/WebAssembly/assembler-binary.ll
  llvm/test/MC/WebAssembly/comdat.ll
  llvm/test/MC/WebAssembly/custom-sections.ll
  llvm/test/MC/WebAssembly/data-section.s
  llvm/test/MC/WebAssembly/event-section.ll
  llvm/test/MC/WebAssembly/external-func-address.ll
  llvm/test/MC/WebAssembly/global-ctor-dtor.ll
  llvm/test/MC/WebAssembly/reloc-pic.s
  llvm/test/MC/WebAssembly/tables.s
  llvm/test/MC/WebAssembly/type-index.s
  llvm/test/MC/WebAssembly/wasm64.s
  llvm/test/MC/WebAssembly/weak-alias.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91637.305814.patch
Type: text/x-patch
Size: 25378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201117/4483faba/attachment.bin>


More information about the llvm-commits mailing list