[lld] r224817 - [Mips] Join two if statements
Simon Atanasyan
simon at atanasyan.com
Wed Dec 24 04:19:42 PST 2014
Author: atanasyan
Date: Wed Dec 24 06:19:42 2014
New Revision: 224817
URL: http://llvm.org/viewvc/llvm-project?rev=224817&view=rev
Log:
[Mips] Join two if statements
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp?rev=224817&r1=224816&r2=224817&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Wed Dec 24 06:19:42 2014
@@ -297,9 +297,7 @@ void RelocationPass<ELFT>::perform(std::
// Create R_MIPS_REL32 relocations.
for (auto *ref : _rel32Candidates) {
- if (!isDynamic(ref->target()))
- continue;
- if (_pltMap.count(ref->target()))
+ if (!isDynamic(ref->target()) || _pltMap.count(ref->target()))
continue;
ref->setKindValue(R_MIPS_REL32);
if (!isLocalCall(ref->target()))
More information about the llvm-commits
mailing list