[llvm] 9d739a9 - [ObjectYAML] - Remove unused function. NFC.

Georgii Rymar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 04:23:13 PDT 2020


Author: Georgii Rymar
Date: 2020-06-04T14:22:51+03:00
New Revision: 9d739a915730493d3578ad73df4e86e841a0c08b

URL: https://github.com/llvm/llvm-project/commit/9d739a915730493d3578ad73df4e86e841a0c08b
DIFF: https://github.com/llvm/llvm-project/commit/9d739a915730493d3578ad73df4e86e841a0c08b.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/ObjectYAML/ELFEmitter.cpp

Removed: 
    


################################################################################
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<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.


        


More information about the llvm-commits mailing list