summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/ELFYAML.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-12-20 10:43:49 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-12-20 10:43:49 +0000
commit6367d7a6d15c1114942a8ec7b130de04a8d5daf9 (patch)
tree18286124c7afe57d289f03277fa3680a2fb7457c /llvm/lib/ObjectYAML/ELFYAML.cpp
parentcd51ffa29073a5388151cbbe6fd6a28b322892e4 (diff)
downloadbcm5719-llvm-6367d7a6d15c1114942a8ec7b130de04a8d5daf9.tar.gz
bcm5719-llvm-6367d7a6d15c1114942a8ec7b130de04a8d5daf9.zip
[yaml2obj/obj2yaml] - Support dumping/parsing ABI version.
These tools were assuming ABI version is 0, that is not always true. Patch teaches them to work with that field. Differential revision: https://reviews.llvm.org/D55884 llvm-svn: 349737
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index b9f52432fc8..215d6bdd091 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -753,6 +753,7 @@ void MappingTraits<ELFYAML::FileHeader>::mapping(IO &IO,
IO.mapRequired("Class", FileHdr.Class);
IO.mapRequired("Data", FileHdr.Data);
IO.mapOptional("OSABI", FileHdr.OSABI, ELFYAML::ELF_ELFOSABI(0));
+ IO.mapOptional("ABIVersion", FileHdr.ABIVersion, Hex8(0));
IO.mapRequired("Type", FileHdr.Type);
IO.mapRequired("Machine", FileHdr.Machine);
IO.mapOptional("Flags", FileHdr.Flags, ELFYAML::ELF_EF(0));
OpenPOWER on IntegriCloud