summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2015-12-07 08:02:20 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2015-12-07 08:02:20 +0000
commit95c1a58539296cf0a9e72d6742548bbb3c71f796 (patch)
tree361ff46964206d81553a06eaf977d7450c4bb721
parent8d2093d1dfe26d8a23d3677a6be23304ccf85477 (diff)
downloadbcm5719-llvm-95c1a58539296cf0a9e72d6742548bbb3c71f796.tar.gz
bcm5719-llvm-95c1a58539296cf0a9e72d6742548bbb3c71f796.zip
Renamed addLocalModelTlsIndex() -> addCurrentModuleTlsIndex(), NFC.
(per discussion with Michael Spencer) llvm-svn: 254896
-rw-r--r--lld/ELF/OutputSections.cpp2
-rw-r--r--lld/ELF/OutputSections.h2
-rw-r--r--lld/ELF/Writer.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index dace6ebed1b..ade65979be2 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -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);
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h
index 63ad5d70ef8..2332308a578 100644
--- a/lld/ELF/OutputSections.h
+++ b/lld/ELF/OutputSections.h
@@ -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;
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 5d589d747f0..465dc68a3c0 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -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;
}
OpenPOWER on IntegriCloud