[ELF][MIPS] Delete dead !Sym->isDefined() check in addAbsolute()

llvm-svn: 362314
This commit is contained in:
Fangrui Song 2019-06-02 02:43:38 +00:00
parent 84254dd8ab
commit 0a6bababa8
1 changed files with 0 additions and 2 deletions

View File

@ -188,8 +188,6 @@ static Defined *addOptionalRegular(StringRef Name, SectionBase *Sec,
static Defined *addAbsolute(StringRef Name) {
Symbol *Sym = Symtab->addSymbol(Defined{nullptr, Name, STB_GLOBAL, STV_HIDDEN,
STT_NOTYPE, 0, 0, nullptr});
if (!Sym->isDefined())
error("duplicate symbol: " + toString(*Sym));
return cast<Defined>(Sym);
}