diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-04-27 05:31:28 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-04-27 05:31:28 +0000 |
commit | 4ee2918e6e9e6800394b5bd720e2ca84c554618a (patch) | |
tree | d28f87035f856bbc7d78149501d02da2b8a82a02 /lld/ELF/OutputSections.cpp | |
parent | d2fa41471828f9a1c022db095807110b6cfd6dec (diff) | |
download | bcm5719-llvm-4ee2918e6e9e6800394b5bd720e2ca84c554618a.tar.gz bcm5719-llvm-4ee2918e6e9e6800394b5bd720e2ca84c554618a.zip |
[ELF][MIPS] Remove getMipsGpAddr(). NFC
llvm-svn: 267673
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 6faabdfb39a..15ddd9da318 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1573,7 +1573,7 @@ MipsReginfoOutputSection<ELFT>::MipsReginfoOutputSection() template <class ELFT> void MipsReginfoOutputSection<ELFT>::writeTo(uint8_t *Buf) { auto *R = reinterpret_cast<Elf_Mips_RegInfo *>(Buf); - R->ri_gp_value = getMipsGpAddr<ELFT>(); + R->ri_gp_value = Out<ELFT>::Got->getVA() + MipsGPOffset; R->ri_gprmask = GprMask; } |