projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a22b082
)
Simplify now that we always have a .got.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Tue, 12 Apr 2016 13:23:27 +0000
(13:23 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Tue, 12 Apr 2016 13:23:27 +0000
(13:23 +0000)
llvm-svn: 266064
lld/ELF/Target.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Target.cpp
b/lld/ELF/Target.cpp
index
5c92fbc
..
bb1297c
100644
(file)
--- 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>();