diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-03-13 20:13:24 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-03-13 20:13:24 +0000 |
commit | 0295bb42c06981805a4b990146ad0d68c99cce8b (patch) | |
tree | f4ccd550719b6f43b0901f58e301f90302a7bd46 | |
parent | 6c5638b01a7c0ad34d2d94f48ff887fa97ec834a (diff) | |
download | bcm5719-llvm-0295bb42c06981805a4b990146ad0d68c99cce8b.tar.gz bcm5719-llvm-0295bb42c06981805a4b990146ad0d68c99cce8b.zip |
[ELF][MIPS] Use TargetInfo::needsGot call to check necessity of GOT for local symbols. NFC.
llvm-svn: 263388
-rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index beaad67bded..c7d5efab450 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -339,7 +339,7 @@ void Writer<ELFT>::scanRelocs(InputSectionBase<ELFT> &C, // MIPS has a special rule to create GOTs for local symbols. if (Config->EMachine == EM_MIPS && !Preemptible && - (Type == R_MIPS_GOT16 || Type == R_MIPS_CALL16)) { + Target->needsGot(Type, Body)) { // FIXME (simon): Do not add so many redundant entries. Out<ELFT>::Got->addMipsLocalEntry(); continue; |