[WebAssembly] Add support for DWARF type units
authorDerek Schuff <dschuff@chromium.org>
Wed, 30 Sep 2020 18:55:12 +0000 (11:55 -0700)
committerDerek Schuff <dschuff@chromium.org>
Wed, 28 Oct 2020 00:13:41 +0000 (17:13 -0700)
commitbcb8a119df210753c5f1a3ac346d49597fef0f51
tree4c4eb69508a5f34ee9110d507a7ee369bb7e921d
parent14077836ec0575320042585a80e4227bb0ee5be0
[WebAssembly] Add support for DWARF type units

Since Wasm comdat sections work similarly to ELF, we can use that mechanism
to eliminate duplicate dwarf type information in the same way.

Differential Revision: https://reviews.llvm.org/D88603
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/debug-options.c
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/lib/MC/WasmObjectWriter.cpp
llvm/test/DebugInfo/WebAssembly/dwarf-headers.ll [new file with mode: 0644]