[llvm] r242674 - Remove unnecessary code.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jul 20 07:29:00 PDT 2015
Author: rafael
Date: Mon Jul 20 09:29:00 2015
New Revision: 242674
URL: http://llvm.org/viewvc/llvm-project?rev=242674&view=rev
Log:
Remove unnecessary code.
We were locating the dynamic string table via both the section and segment
headers.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=242674&r1=242673&r2=242674&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Mon Jul 20 09:29:00 2015
@@ -650,15 +650,6 @@ ELFFile<ELFT>::ELFFile(StringRef Object,
return;
}
DotDynSymSec = &Sec;
- ErrorOr<const Elf_Shdr *> SectionOrErr = getSection(Sec.sh_link);
- if ((EC = SectionOrErr.getError()))
- return;
- ErrorOr<StringRef> SymtabOrErr = getStringTable(*SectionOrErr);
- if ((EC = SymtabOrErr.getError()))
- return;
- DynStrRegion.Addr = SymtabOrErr->data();
- DynStrRegion.Size = SymtabOrErr->size();
- DynStrRegion.EntSize = 1;
break;
}
case ELF::SHT_DYNAMIC:
More information about the llvm-commits
mailing list