llvm-project/lld/wasm
Sam Clegg 8b0b48f343 [WebAssembly] Preserve function signatures during LTO
With LTO when and undefined function (with a known signature)
in replaced by a defined bitcode function we were loosing the
signature information (since bitcode functions don't have
signatures).

With this change we preserve the original signature from the
undefined function and verify that the post LTO compiled
function has the correct signature.

This change improves the error handling in the case where
there is a signature mismatch with a function defined in
a bitcode file.

Differential Revision: https://reviews.llvm.org/D50721

llvm-svn: 343340
2018-09-28 16:50:14 +00:00
..
CMakeLists.txt [WebAssembly] Fix broken build due to missing attributes.inc 2018-06-13 08:38:23 +00:00
Config.h [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
Driver.cpp [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
InputChunks.cpp [WebAssembly] Update Config member to match command line option 2018-09-27 00:46:54 +00:00
InputChunks.h [WebAssembly] Update Config member to match command line option 2018-09-27 00:46:54 +00:00
InputFiles.cpp [WebAssembly] Move .debug_line section address of dead function outside section range 2018-09-24 23:50:55 +00:00
InputFiles.h [WebAssembly] Add support for --whole-archive. 2018-07-23 23:51:19 +00:00
InputGlobal.h [WebAssembly] Implement -print-gc-sections, to better test GC of globals 2018-04-20 17:28:12 +00:00
LTO.cpp [WebAssembly] Preserve function signatures during LTO 2018-09-28 16:50:14 +00:00
LTO.h [WebAssembly] Initial support for LTO 2018-05-30 18:07:52 +00:00
MarkLive.cpp [WebAssembly] Add support for bitcode archive members 2018-06-28 17:04:58 +00:00
MarkLive.h Consistent (non) use of empty lines in include blocks 2018-02-20 21:53:18 +00:00
Options.td [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
OutputSections.cpp [WebAssembly] Add option to remove LEB padding at relocate sites 2018-05-18 23:28:05 +00:00
OutputSections.h [WebAssembly] clang-format (NFC) 2018-08-29 21:03:16 +00:00
OutputSegment.h [WebAssembly] Remove another trivial accessor. 2018-04-05 19:37:31 +00:00
SymbolTable.cpp [WebAssembly] Preserve function signatures during LTO 2018-09-28 16:50:14 +00:00
SymbolTable.h Set IsUsedInRegularObj in a consistent manor between COFF, ELF and wasm. NFC 2018-08-02 20:39:19 +00:00
Symbols.cpp [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
Symbols.h [WebAssembly] Fix --export of LTO symbols 2018-06-28 17:21:46 +00:00
Writer.cpp [WebAssembly] clang-format (NFC) 2018-08-29 21:03:16 +00:00
Writer.h
WriterUtils.cpp [WebAssembly] Add v128 value type 2018-09-20 22:07:18 +00:00
WriterUtils.h [WebAssembly] Add export/import for function pointer table 2018-03-27 17:38:51 +00:00