Skip to content

Commit

Permalink
[ObjectYAML] - Remove unused function. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgii Rymar committed Jun 4, 2020
1 parent ed9df86 commit 9d739a9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions llvm/lib/ObjectYAML/ELFEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1623,12 +1623,6 @@ DenseMap<StringRef, size_t> ELFState<ELFT>::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 <class ELFT> void ELFState<ELFT>::buildSectionIndex() {
// A YAML description can have an explicit section header declaration that
// allows to change the order of section headers.
Expand Down

0 comments on commit 9d739a9

Please sign in to comment.