forked from OSchip/llvm-project
[ELF][MIPS] Delete dead !Sym->isDefined() check in addAbsolute()
llvm-svn: 362314
This commit is contained in:
parent
84254dd8ab
commit
0a6bababa8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue