diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-05-14 05:07:47 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-05-14 05:07:47 +0000 |
commit | ae6bb33ac21538d3bcefc3a03bc0214896ef4d28 (patch) | |
tree | b3baac4cc2417b62b3d6bee86518cbac61aed8bc /llvm/lib/Object/ELFYAML.cpp | |
parent | 27351f2022c56b830f91d7f526775693fd9043e9 (diff) | |
download | bcm5719-llvm-ae6bb33ac21538d3bcefc3a03bc0214896ef4d28.tar.gz bcm5719-llvm-ae6bb33ac21538d3bcefc3a03bc0214896ef4d28.zip |
[obj2yaml] Support ELF input format in the obj2yaml tool.
The ELF header e_flags field in the MIPS related test cases handled
incorrectly. The obj2yaml prints too many flags. I will fix that in the
next patches.
The patch reviewed by Michael Spencer and Sean Silva.
llvm-svn: 208752
Diffstat (limited to 'llvm/lib/Object/ELFYAML.cpp')
-rw-r--r-- | llvm/lib/Object/ELFYAML.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/ELFYAML.cpp b/llvm/lib/Object/ELFYAML.cpp index 35cda6378c8..75a4de0a7bf 100644 --- a/llvm/lib/Object/ELFYAML.cpp +++ b/llvm/lib/Object/ELFYAML.cpp @@ -670,7 +670,8 @@ void MappingTraits<std::unique_ptr<ELFYAML::Section>>::mapping( ELFYAML::ELF_SHT sectionType; if (IO.outputting()) sectionType = Section->Type; - IO.mapRequired("Type", sectionType); + else + IO.mapRequired("Type", sectionType); switch (sectionType) { case ELF::SHT_REL: |