[all-commits] [llvm/llvm-project] e4888b: [WebAssembly] Avoid unused function imports in PIC...
Sam Clegg via All-commits
all-commits at lists.llvm.org
Wed Aug 18 19:31:27 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e4888be74e342840cc1d9e42c9f42938169ae96b
https://github.com/llvm/llvm-project/commit/e4888be74e342840cc1d9e42c9f42938169ae96b
Author: Sam Clegg <sbc at chromium.org>
Date: 2021-08-18 (Wed, 18 Aug 2021)
Changed paths:
M lld/test/wasm/shared.s
M lld/test/wasm/shared64.s
M lld/wasm/SymbolTable.cpp
M lld/wasm/Writer.cpp
Log Message:
-----------
[WebAssembly] Avoid unused function imports in PIC mode
In PIC mode we import function address via `GOT.mem` imports but for
direct function calls we still import the first class function.
However, if the function is never directly called we can avoid the first
class import completely.
Differential Revision: https://reviews.llvm.org/D108345
More information about the All-commits
mailing list