Delete dead code. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 8 Aug 2015 00:25:57 +0000 (00:25 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 8 Aug 2015 00:25:57 +0000 (00:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244378 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index d8bad4564ead4a57c0b079fc5771632856ec3d4b..ac0ab30706052841dc10399611034281320a8d6e 100644 (file)
@@ -68,7 +68,6 @@ private:
   const Elf_Ehdr *Header;
   const Elf_Shdr *SectionHeaderTable = nullptr;
   StringRef DotShstrtab;                    // Section header string table.
-  StringRef DotStrtab;                      // Symbol header string table.
   const Elf_Shdr *dot_symtab_sec = nullptr; // Symbol table section.
 
   const Elf_Shdr *SymbolTableSectionHeaderIndex = nullptr;
@@ -377,10 +376,6 @@ ELFFile<ELFT>::ELFFile(StringRef Object, std::error_code &EC)
         return;
       }
       dot_symtab_sec = &Sec;
-      ErrorOr<StringRef> SymtabOrErr = getStringTableForSymtab(Sec);
-      if ((EC = SymtabOrErr.getError()))
-        return;
-      DotStrtab = *SymtabOrErr;
     } break;
     }
   }