Revert D105519 "[WebAssembly] Deduplicate imports of the same module name, field...
authorFangrui Song <i@maskray.me>
Tue, 20 Jul 2021 00:09:01 +0000 (17:09 -0700)
committerFangrui Song <i@maskray.me>
Tue, 20 Jul 2021 00:09:01 +0000 (17:09 -0700)
commit16aac493e59519377071e900d119ba2e7e5b525d
tree9c18493e843f9aee8ba62f115fc922f8b4d871a2
parent762badb0ab44a015fd066089c6b266f51ab5f703
Revert D105519 "[WebAssembly] Deduplicate imports of the same module name, field name, and type" and its followup

This reverts commit 4ae575b9997e0903d1c2ec01a43e3f3f2db5df16 and 9b965b37c75d626c01951184088314590e38d299.

There is an use-of-uninitialized-value bug in the `else` branch in ImportSection::addImport.
lld/test/wasm/duplicate-function-imports.s [deleted file]
lld/test/wasm/duplicate-global-imports.s [deleted file]
lld/test/wasm/duplicate-table-imports.s [deleted file]
lld/wasm/Symbols.h
lld/wasm/SyntheticSections.cpp
lld/wasm/SyntheticSections.h
lld/wasm/Writer.cpp
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/include/llvm/BinaryFormat/WasmTraits.h