diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-05-29 11:05:31 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-05-29 11:05:31 +0000 |
commit | ce538c783448d6b8d848212286b5a4e500bc9956 (patch) | |
tree | 8641ee93da3673cd9aa59f295665bd10e77e7cdf /lib/Object | |
parent | 086a708135db02636c15e8cecb53ba757b487c18 (diff) | |
download | llvm-ce538c783448d6b8d848212286b5a4e500bc9956.tar.gz llvm-ce538c783448d6b8d848212286b5a4e500bc9956.tar.bz2 llvm-ce538c783448d6b8d848212286b5a4e500bc9956.tar.xz |
[elf2yaml][ELF] Move Info field to the RelocationSection structure. This
field represents ELF section header sh_info field and does not have any
sense for regular sections. Its interpretation depends on section type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/ELFYAML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/ELFYAML.cpp b/lib/Object/ELFYAML.cpp index 7d50f23417..4c52f9c0be 100644 --- a/lib/Object/ELFYAML.cpp +++ b/lib/Object/ELFYAML.cpp @@ -664,7 +664,6 @@ static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0)); IO.mapOptional("Address", Section.Address, Hex64(0)); IO.mapOptional("Link", Section.Link, StringRef()); - IO.mapOptional("Info", Section.Info, StringRef()); IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); } @@ -676,6 +675,7 @@ static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { commonSectionMapping(IO, Section); + IO.mapOptional("Info", Section.Info, StringRef()); IO.mapOptional("Relocations", Section.Relocations); } |