[yaml2obj/obj2yaml/llvm-readobj] Support printing and parsing AVR-specific e_flags
authorLemonBoy <thatlemon@gmail.com>
Thu, 15 Apr 2021 13:52:54 +0000 (15:52 +0200)
committerLemonBoy <thatlemon@gmail.com>
Thu, 15 Apr 2021 13:54:28 +0000 (15:54 +0200)
commit24185541ca48bd7ed089a4dbf57bdcb91e290508
tree16ccee23d9c8a66520d270a68538190b48264b39
parent9345f9fa5d6401bf9b98ce915bf4fbde9d183ce7
[yaml2obj/obj2yaml/llvm-readobj] Support printing and parsing AVR-specific e_flags

The `e_flags` contains a mixture of bitfields and regular ones, ensure all of them can be serialized and deserialized.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D100250
llvm/include/llvm/BinaryFormat/ELF.h
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/Object/obj2yaml.test
llvm/test/tools/llvm-readobj/ELF/avr-elf-headers.test [new file with mode: 0644]
llvm/tools/llvm-readobj/ELFDumper.cpp