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 | b8236e532a9bc5e0c6684a0b51f808d4754272bd (patch) | |
tree | 6b8bb07cc323e06c40b3fa126a36294478296c86 /lib/Object | |
parent | 0fe443d8932b68ebbe281141ef79f81ee97e292d (diff) | |
download | llvm-b8236e532a9bc5e0c6684a0b51f808d4754272bd.tar.gz llvm-b8236e532a9bc5e0c6684a0b51f808d4754272bd.tar.bz2 llvm-b8236e532a9bc5e0c6684a0b51f808d4754272bd.tar.xz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/ELFYAML.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Object/ELFYAML.cpp b/lib/Object/ELFYAML.cpp index 35cda6378c..75a4de0a7b 100644 --- a/lib/Object/ELFYAML.cpp +++ b/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: |