summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-05-29 11:05:31 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-05-29 11:05:31 +0000
commit8745993ec42da38519f4042dd6ac8b387575e788 (patch)
tree607b5f299b63ae66b0c0c57020ffba9892af4f6c /llvm/lib/Object
parent01a7598561561c6d34ba0683a550ed6326fa8f98 (diff)
downloadbcm5719-llvm-8745993ec42da38519f4042dd6ac8b387575e788.tar.gz
bcm5719-llvm-8745993ec42da38519f4042dd6ac8b387575e788.zip
[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. llvm-svn: 209801
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/ELFYAML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ELFYAML.cpp b/llvm/lib/Object/ELFYAML.cpp
index 7d50f23417b..4c52f9c0be0 100644
--- a/llvm/lib/Object/ELFYAML.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud