forked from OSchip/llvm-project
[LLD][ELF] - Remove dead check from adjustSplitStackFunctionPrologues().
In according to the comment, undefined symbol should never reach there. So, should be able to remove the check. I am assuming this is NFC. llvm-svn: 338723
This commit is contained in:
parent
47ec1e07c7
commit
300d363dfd
|
@ -888,13 +888,8 @@ void InputSectionBase::adjustSplitStackFunctionPrologues(uint8_t *Buf,
|
|||
if (Rel.Sym->isLocal())
|
||||
continue;
|
||||
|
||||
Defined *D = dyn_cast<Defined>(Rel.Sym);
|
||||
// A reference to an undefined symbol was an error, and should not
|
||||
// have gotten to this point.
|
||||
if (!D)
|
||||
continue;
|
||||
|
||||
// Ignore calls into the split-stack api.
|
||||
Defined *D = cast<Defined>(Rel.Sym);
|
||||
if (D->getName().startswith("__morestack")) {
|
||||
if (D->getName().equals("__morestack"))
|
||||
MorestackCalls.push_back(&Rel);
|
||||
|
|
Loading…
Reference in New Issue