[lld] r272390 - [ELF] Use static function isPreemptible instead of SymbolBody::isPreemptible. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 05:26:39 PDT 2016
Author: atanasyan
Date: Fri Jun 10 07:26:39 2016
New Revision: 272390
URL: http://llvm.org/viewvc/llvm-project?rev=272390&view=rev
Log:
[ELF] Use static function isPreemptible instead of SymbolBody::isPreemptible. NFC
Just for consistency with other parts of the code.
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=272390&r1=272389&r2=272390&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Fri Jun 10 07:26:39 2016
@@ -139,7 +139,7 @@ static unsigned handleTlsRelocation(uint
// 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});
More information about the llvm-commits
mailing list