[Mips] Remove redundant checking from the RelocationPass::isDynamic() function.

No functional changes.

llvm-svn: 211431
This commit is contained in:
Simon Atanasyan 2014-06-21 08:36:12 +00:00
parent c1485223a6
commit fa30168395
1 changed files with 1 additions and 8 deletions

View File

@ -479,14 +479,7 @@ bool RelocationPass<ELFT>::requireCopy(Reference &ref) {
if (!_hasStaticRelocations.count(ref.target()))
return false;
const auto *sa = dyn_cast<ELFDynamicAtom<ELFT>>(ref.target());
if (sa && sa->type() != SharedLibraryAtom::Type::Data)
return false;
const auto *da = dyn_cast<ELFDefinedAtom<ELFT>>(ref.target());
if (da && da->contentType() != DefinedAtom::typeData)
return false;
if (isLocalCall(ref.target()))
return false;
return true;
return sa && sa->type() == SharedLibraryAtom::Type::Data;
}
template <typename ELFT>