diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-03 14:54:02 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-03 14:54:02 +0000 |
commit | e9da9aa4f386da6930dc663aaed727ce61690570 (patch) | |
tree | 1616e47bc0514be7f1847f50d698091185d71817 /llvm/lib/Object/ELFYAML.cpp | |
parent | c026417420f5896fe8151a6b2ec89a15f81a274f (diff) | |
download | bcm5719-llvm-e9da9aa4f386da6930dc663aaed727ce61690570.tar.gz bcm5719-llvm-e9da9aa4f386da6930dc663aaed727ce61690570.zip |
This reverts commit r241350 and r241352.
r241350 broke lld tests.
r241352 depends on r241350.
Original messages:
"[ELFYAML] Fix handling SHT_NOBITS sections by obj2yaml/yaml2obj tools"
"[ELFYAML] Make the Size field for .bss section optional"
llvm-svn: 241354
Diffstat (limited to 'llvm/lib/Object/ELFYAML.cpp')
-rw-r--r-- | llvm/lib/Object/ELFYAML.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Object/ELFYAML.cpp b/llvm/lib/Object/ELFYAML.cpp index 72c232c3287..ecdd468305b 100644 --- a/llvm/lib/Object/ELFYAML.cpp +++ b/llvm/lib/Object/ELFYAML.cpp @@ -627,11 +627,6 @@ static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { IO.mapOptional("Size", Section.Size, Hex64(Section.Content.binary_size())); } -static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { - commonSectionMapping(IO, Section); - IO.mapOptional("Size", Section.Size, Hex64(0)); -} - static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Relocations", Section.Relocations); @@ -687,11 +682,6 @@ void MappingTraits<std::unique_ptr<ELFYAML::Section>>::mapping( Section.reset(new ELFYAML::Group()); groupSectionMapping(IO, *cast<ELFYAML::Group>(Section.get())); break; - case ELF::SHT_NOBITS: - if (!IO.outputting()) - Section.reset(new ELFYAML::NoBitsSection()); - sectionMapping(IO, *cast<ELFYAML::NoBitsSection>(Section.get())); - break; case ELF::SHT_MIPS_ABIFLAGS: if (!IO.outputting()) Section.reset(new ELFYAML::MipsABIFlags()); |