From: Rui Ueyama Date: Fri, 15 Jul 2016 20:05:05 +0000 (+0000) Subject: Remove variables. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=188d2c34e6a212650e0111116291a03479cc7e2e;p=platform%2Fupstream%2Fllvm.git Remove variables. NFC. llvm-svn: 275605 --- diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 256a344..3fd889e 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -138,12 +138,10 @@ void elf::ObjectFile::parse(DenseSet &ComdatGroups) { template StringRef elf::ObjectFile::getShtGroupSignature(const Elf_Shdr &Sec) { const ELFFile &Obj = this->ELFObj; - uint32_t SymtabdSectionIndex = Sec.sh_link; - const Elf_Shdr *SymtabSec = check(Obj.getSection(SymtabdSectionIndex)); - uint32_t SymIndex = Sec.sh_info; - const Elf_Sym *Sym = Obj.getSymbol(SymtabSec, SymIndex); - StringRef StringTable = check(Obj.getStringTableForSymtab(*SymtabSec)); - return check(Sym->getName(StringTable)); + const Elf_Shdr *Symtab = check(Obj.getSection(Sec.sh_link)); + const Elf_Sym *Sym = Obj.getSymbol(Symtab, Sec.sh_info); + StringRef Strtab = check(Obj.getStringTableForSymtab(*Symtab)); + return check(Sym->getName(Strtab)); } template