[WebAssembly] Write DWARF data into wasm object file
commitdb159759834f3c8ef3580091d8e71e5843579629
authorSam Clegg <sbc@chromium.org>
Thu, 26 Apr 2018 19:27:28 +0000 (26 19:27 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 26 Apr 2018 19:27:28 +0000 (26 19:27 +0000)
treefcff8dade940e2414e340700bfcb5a0e54f506e2
parentee52da49b0dc31dc0ab6639906c10ef7c949a30c
[WebAssembly] Write DWARF data into wasm object file

- Writes ".debug_XXX" into corresponding custom sections.
- Writes relocation records into "reloc.debug_XXX" sections.

Patch by Yury Delendik!

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330982 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/BinaryFormat/Wasm.h
include/llvm/BinaryFormat/WasmRelocs.def
include/llvm/Object/RelocVisitor.h
include/llvm/Object/Wasm.h
lib/MC/WasmObjectWriter.cpp
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp
test/MC/WebAssembly/debug-info.ll
test/MC/WebAssembly/dwarfdump.ll [new file with mode: 0644]
tools/llvm-readobj/WasmDumper.cpp
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp