forked from OSchip/llvm-project
Renamed addLocalModelTlsIndex() -> addCurrentModuleTlsIndex(), NFC.
(per discussion with Michael Spencer) llvm-svn: 254896
This commit is contained in:
parent
8d2093d1df
commit
95c1a58539
|
@ -90,7 +90,7 @@ template <class ELFT> bool GotSection<ELFT>::addDynTlsEntry(SymbolBody *Sym) {
|
|||
return true;
|
||||
}
|
||||
|
||||
template <class ELFT> bool GotSection<ELFT>::addLocalModelTlsIndex() {
|
||||
template <class ELFT> bool GotSection<ELFT>::addCurrentModuleTlsIndex() {
|
||||
if (LocalTlsIndexOff != uint32_t(-1))
|
||||
return false;
|
||||
Entries.push_back(nullptr);
|
||||
|
|
|
@ -119,7 +119,7 @@ public:
|
|||
void writeTo(uint8_t *Buf) override;
|
||||
void addEntry(SymbolBody *Sym);
|
||||
bool addDynTlsEntry(SymbolBody *Sym);
|
||||
bool addLocalModelTlsIndex();
|
||||
bool addCurrentModuleTlsIndex();
|
||||
bool empty() const { return Entries.empty(); }
|
||||
uintX_t getEntryAddr(const SymbolBody &B) const;
|
||||
uintX_t getGlobalDynAddr(const SymbolBody &B) const;
|
||||
|
|
|
@ -205,7 +205,7 @@ void Writer<ELFT>::scanRelocs(
|
|||
if (Target->isTlsLocalDynamicReloc(Type)) {
|
||||
if (Target->isTlsOptimized(Type, nullptr))
|
||||
continue;
|
||||
if (Out<ELFT>::Got->addLocalModelTlsIndex())
|
||||
if (Out<ELFT>::Got->addCurrentModuleTlsIndex())
|
||||
Out<ELFT>::RelaDyn->addReloc({&C, &RI});
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue