summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/ELFYAML.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-01-15 14:16:03 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-01-15 14:19:00 +0300
commitca6f616532780b236556fc129cda3243d31cb01a (patch)
treea93395095b2c375f8804a8eb002ca2d555ae67cf /llvm/lib/ObjectYAML/ELFYAML.cpp
parent884a65af5ceebce76519749ed6eb9a86d0596771 (diff)
downloadbcm5719-llvm-ca6f616532780b236556fc129cda3243d31cb01a.tar.gz
bcm5719-llvm-ca6f616532780b236556fc129cda3243d31cb01a.zip
Revert "[yaml2obj/obj2yaml] - Add support for SHT_RELR sections."
This reverts commit 46d11e30ee807accefd14e0b7f306647963a39b5. It broke bots. E.g. http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/60744
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index efa7ecb4728..21ae85022c2 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -1101,12 +1101,6 @@ static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) {
IO.mapOptional("Relocations", Section.Relocations);
}
-static void sectionMapping(IO &IO, ELFYAML::RelrSection &Section) {
- commonSectionMapping(IO, Section);
- IO.mapOptional("Entries", Section.Entries);
- IO.mapOptional("Content", Section.Content);
-}
-
static void groupSectionMapping(IO &IO, ELFYAML::Group &Group) {
commonSectionMapping(IO, Group);
IO.mapOptional("Info", Group.Signature);
@@ -1206,11 +1200,6 @@ void MappingTraits<std::unique_ptr<ELFYAML::Chunk>>::mapping(
Section.reset(new ELFYAML::RelocationSection());
sectionMapping(IO, *cast<ELFYAML::RelocationSection>(Section.get()));
break;
- case ELF::SHT_RELR:
- if (!IO.outputting())
- Section.reset(new ELFYAML::RelrSection());
- sectionMapping(IO, *cast<ELFYAML::RelrSection>(Section.get()));
- break;
case ELF::SHT_GROUP:
if (!IO.outputting())
Section.reset(new ELFYAML::Group());
@@ -1452,12 +1441,6 @@ StringRef MappingTraits<std::unique_ptr<ELFYAML::Chunk>>::validate(
return {};
}
- if (const auto *RS = dyn_cast<ELFYAML::RelrSection>(C.get())) {
- if (RS->Entries && RS->Content)
- return "\"Entries\" and \"Content\" can't be used together";
- return {};
- }
-
return {};
}
OpenPOWER on IntegriCloud