mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
Remove unnecessary use of Repl.
This runs before ICF, so Sec->Repl == Sec. llvm-svn: 320543
This commit is contained in:
@@ -605,10 +605,7 @@ InputSectionBase *ObjFile<ELFT>::getSection(uint32_t Index) const {
|
||||
return nullptr;
|
||||
if (Index >= this->Sections.size())
|
||||
fatal(toString(this) + ": invalid section index: " + Twine(Index));
|
||||
|
||||
if (InputSectionBase *Sec = this->Sections[Index])
|
||||
return Sec->Repl;
|
||||
return nullptr;
|
||||
return this->Sections[Index];
|
||||
}
|
||||
|
||||
template <class ELFT> Symbol *ObjFile<ELFT>::createSymbol(const Elf_Sym *Sym) {
|
||||
|
||||
Reference in New Issue
Block a user