summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2016-04-27 05:31:28 +0000
committerSimon Atanasyan <simon@atanasyan.com>2016-04-27 05:31:28 +0000
commit4ee2918e6e9e6800394b5bd720e2ca84c554618a (patch)
treed28f87035f856bbc7d78149501d02da2b8a82a02 /lld/ELF/OutputSections.cpp
parentd2fa41471828f9a1c022db095807110b6cfd6dec (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud