From: Rafael Espindola Date: Tue, 12 Apr 2016 13:23:27 +0000 (+0000) Subject: Simplify now that we always have a .got. X-Git-Tag: llvmorg-3.9.0-rc1~9356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a72cc0083d295364b64b7bbb63d807e1f8de985;p=platform%2Fupstream%2Fllvm.git Simplify now that we always have a .got. llvm-svn: 266064 --- diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 5c92fbc..bb1297c 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -1921,9 +1921,7 @@ bool MipsTargetInfo::isRelRelative(uint32_t Type) const { // the value for the symbol. template typename ELFT::uint getMipsGpAddr() { unsigned GPOffset = 0x7ff0; - if (uint64_t V = Out::Got->getVA()) - return V + GPOffset; - return 0; + return Out::Got->getVA() + GPOffset; } template uint32_t getMipsGpAddr();