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 | a89ad42b367c037cd894d553e85f442f4132d5ef (patch) | |
tree | cb7ec6adeefcc315d60eedc91368e8abac613295 /tools/yaml2obj/yaml2elf.cpp | |
parent | cca9ef32476a6b7a821227edbb5f4c8a7a591849 (diff) |
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"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/yaml2obj/yaml2elf.cpp')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 795d5426291..772b5b918ec 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -241,8 +241,6 @@ bool ELFState<ELFT>::initSectionHeaders(std::vector<Elf_Shdr> &SHeaders, } else if (auto S = dyn_cast<ELFYAML::MipsABIFlags>(Sec.get())) { if (!writeSectionContent(SHeader, *S, CBA)) return false; - } else if (isa<ELFYAML::NoBitsSection>(Sec.get())) { - // SHT_NOBITS section does not have content so nothing to do here. } else llvm_unreachable("Unknown section type"); |