1. [lld][WebAssebmly] Preserve custom import attributes with LTO (details)
Commit 67b055841f3b64efd1e92bde3ed7aeeb493c1182 by sbc
[lld][WebAssebmly] Preserve custom import attributes with LTO
Undefined symbols in WebAssembly can come with custom `import-module`
and `import-field` attributes.  However when reading symbols from
bitcode object files during LTO those curtom attributes are not
Once we compile the LTO object and read in the symbol table from the
object file we have access to these custom attributes.  In this case,
when undefined symbols are added and a symbol already exists in the
SymbolTable we can't simple return it, we may need to update the
symbol's attributes.
Fixes: PR43211
Differential Revision:
llvm-svn: 375081
The file was modifiedlld/wasm/LTO.cpp
The file was modifiedlld/wasm/InputFiles.cpp
The file was addedlld/test/wasm/import-attribute-mismatch.ll
The file was addedlld/test/wasm/lto/import-attributes.ll
The file was addedlld/test/wasm/Inputs/import-attributes.ll
The file was modifiedlld/wasm/SymbolTable.cpp