From 9d739a915730493d3578ad73df4e86e841a0c08b Mon Sep 17 00:00:00 2001 From: Georgii Rymar Date: Thu, 4 Jun 2020 14:22:06 +0300 Subject: [PATCH] [ObjectYAML] - Remove unused function. NFC. Was introduced in D81005 by mistake. Catched by BB: http://lab.llvm.org:8011/builders/clang-ppc64le-rhel/builds/4070/steps/build%20stage%201/logs/stdio --- llvm/lib/ObjectYAML/ELFEmitter.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp index 02b2c94516fb..ae2f7ed48b93 100644 --- a/llvm/lib/ObjectYAML/ELFEmitter.cpp +++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp @@ -1623,12 +1623,6 @@ DenseMap ELFState::buildSectionHeaderReorderMap() { return Ret; } -static bool hasSectionHeader(const ELFYAML::Object &Doc, size_t SecNdx) { - if (!Doc.SectionHeaders) - return true; - return SecNdx < Doc.SectionHeaders->Sections.size(); -} - template void ELFState::buildSectionIndex() { // A YAML description can have an explicit section header declaration that // allows to change the order of section headers.