diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-06-10 12:26:39 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-06-10 12:26:39 +0000 |
commit | 9b861181f9f9ac1f744c4ca0711fdc1e8f734f0c (patch) | |
tree | 82fe1bd953d6010fbe8b06140bab0311c9daf6c5 | |
parent | 311b4b15e16aea5a1c5733a0f0be1d5d9eb1f172 (diff) | |
download | bcm5719-llvm-9b861181f9f9ac1f744c4ca0711fdc1e8f734f0c.tar.gz bcm5719-llvm-9b861181f9f9ac1f744c4ca0711fdc1e8f734f0c.zip |
[ELF] Use static function isPreemptible instead of SymbolBody::isPreemptible. NFC
Just for consistency with other parts of the code.
llvm-svn: 272390
-rw-r--r-- | lld/ELF/Relocations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 63ed23ea8db..0da756caabf 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -139,7 +139,7 @@ static unsigned handleTlsRelocation(uint32_t Type, SymbolBody &Body, // If the symbol is preemptible we need the dynamic linker to write // the offset too. - if (Body.isPreemptible()) + if (isPreemptible(Body, Type)) Out<ELFT>::RelaDyn->addReloc({Target->TlsOffsetRel, Out<ELFT>::Got, Off + (uintX_t)sizeof(uintX_t), false, &Body, 0}); |