[ELF] Use static function isPreemptible instead of SymbolBody::isPreemptible. NFC

Just for consistency with other parts of the code.

llvm-svn: 272390
This commit is contained in:
Simon Atanasyan 2016-06-10 12:26:39 +00:00
parent 311b4b15e1
commit 9b861181f9
1 changed files with 1 additions and 1 deletions

View File

@ -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});