forked from OSchip/llvm-project
Simplify now that we always have a .got.
llvm-svn: 266064
This commit is contained in:
parent
a22b082e46
commit
3a72cc0083
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue