summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2016-06-10 12:26:39 +0000
committerSimon Atanasyan <simon@atanasyan.com>2016-06-10 12:26:39 +0000
commit9b861181f9f9ac1f744c4ca0711fdc1e8f734f0c (patch)
tree82fe1bd953d6010fbe8b06140bab0311c9daf6c5
parent311b4b15e16aea5a1c5733a0f0be1d5d9eb1f172 (diff)
downloadbcm5719-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.cpp2
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});
OpenPOWER on IntegriCloud