[ObjectYAML][ELF] Let the endianness of DWARF sections be inferred from FileHeader.
authorXing GUO <higuoxing@gmail.com>
Thu, 4 Jun 2020 01:25:26 +0000 (09:25 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 4 Jun 2020 01:26:05 +0000 (09:26 +0800)
commitb6020c330d3826aa542164842d6ba71fdee3650b
treef462c95efdccc829b3335373d4e79f308dd0eea1
parenta50f4eb2e91bc384fb8956a9637abb7e46e7ec84
[ObjectYAML][ELF] Let the endianness of DWARF sections be inferred from FileHeader.

This patch helps infer the endianness of DWARF sections from `FileHeader`.

Reviewed By: jhenderson, grimar

Differential Revision: https://reviews.llvm.org/D81051
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-aranges.yaml