From: Rafael Espindola Date: Mon, 20 Jul 2015 14:29:00 +0000 (+0000) Subject: Remove unnecessary code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c7642e2302c58d90978bf7c7d1d74d34743a1db;p=oota-llvm.git Remove unnecessary code. We were locating the dynamic string table via both the section and segment headers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242674 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index fc6fe6e49b9..085595ed621 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -650,15 +650,6 @@ ELFFile::ELFFile(StringRef Object, std::error_code &EC) return; } DotDynSymSec = &Sec; - ErrorOr SectionOrErr = getSection(Sec.sh_link); - if ((EC = SectionOrErr.getError())) - return; - ErrorOr SymtabOrErr = getStringTable(*SectionOrErr); - if ((EC = SymtabOrErr.getError())) - return; - DynStrRegion.Addr = SymtabOrErr->data(); - DynStrRegion.Size = SymtabOrErr->size(); - DynStrRegion.EntSize = 1; break; } case ELF::SHT_DYNAMIC: