[WebAssembly] Add support for DWARF type units
authorDerek Schuff <dschuff@chromium.org>
Thu, 29 Oct 2020 00:15:58 +0000 (17:15 -0700)
committerDerek Schuff <dschuff@chromium.org>
Thu, 29 Oct 2020 00:41:22 +0000 (17:41 -0700)
commit77973f8dee6d4d6f1b7c2a026249c1f7068f267b
treee758cba03022dd0bd6251a11b27422e7e99f7129
parenta66e334cebec0c54ec357436563ddf78e3caab72
[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]