From b8236e532a9bc5e0c6684a0b51f808d4754272bd Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Wed, 14 May 2014 05:07:47 +0000 Subject: [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 --- lib/Object/ELFYAML.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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>::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: -- cgit v1.2.3