diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-12 13:23:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-12 13:23:27 +0000 |
commit | 3a72cc0083d295364b64b7bbb63d807e1f8de985 (patch) | |
tree | 3fd8b3e7b1d43813b3cb0a211518e9c2aea42502 | |
parent | a22b082e46f6ce1216ca2a2792ee0a8a423f0ee9 (diff) | |
download | bcm5719-llvm-3a72cc0083d295364b64b7bbb63d807e1f8de985.tar.gz bcm5719-llvm-3a72cc0083d295364b64b7bbb63d807e1f8de985.zip |
Simplify now that we always have a .got.
llvm-svn: 266064
-rw-r--r-- | lld/ELF/Target.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 5c92fbc93a7..bb1297c2177 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -1921,9 +1921,7 @@ bool MipsTargetInfo<ELFT>::isRelRelative(uint32_t Type) const { // the value for the symbol. template <class ELFT> typename ELFT::uint getMipsGpAddr() { unsigned GPOffset = 0x7ff0; - if (uint64_t V = Out<ELFT>::Got->getVA()) - return V + GPOffset; - return 0; + return Out<ELFT>::Got->getVA() + GPOffset; } template uint32_t getMipsGpAddr<ELF32LE>(); |