[lld] r265166 - Simplify if. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 11:04:22 PDT 2016
Author: rafael
Date: Fri Apr 1 13:04:21 2016
New Revision: 265166
URL: http://llvm.org/viewvc/llvm-project?rev=265166&view=rev
Log:
Simplify if. NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=265166&r1=265165&r2=265166&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Apr 1 13:04:21 2016
@@ -452,14 +452,13 @@ void Writer<ELFT>::scanRelocs(InputSecti
continue;
}
- if (Config->EMachine == EM_MIPS) {
- if (&Body == Config->MipsGpDisp || &Body == Config->MipsLocalGp)
- // MIPS _gp_disp designates offset between start of function and 'gp'
- // pointer into GOT. __gnu_local_gp is equal to the current value of
- // the 'gp'. Therefore any relocations against them do not require
- // dynamic relocation.
- continue;
- }
+ // MIPS _gp_disp designates offset between start of function and 'gp'
+ // pointer into GOT. __gnu_local_gp is equal to the current value of
+ // the 'gp'. Therefore any relocations against them do not require
+ // dynamic relocation.
+ if (Config->EMachine == EM_MIPS &&
+ (&Body == Config->MipsGpDisp || &Body == Config->MipsLocalGp))
+ continue;
if (Preemptible) {
// We don't know anything about the finaly symbol. Just ask the dynamic
More information about the llvm-commits
mailing list