diff options
author | Rui Ueyama <ruiu@google.com> | 2015-12-17 00:12:03 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-12-17 00:12:03 +0000 |
commit | 61805ec343e3a0e8c6d02d4af362a7c3866d802b (patch) | |
tree | bab2b99051c17073364fa7e534d967dc5059fa30 | |
parent | 62d0e3297b75d9aac347174a54586c8cf6272b39 (diff) | |
download | bcm5719-llvm-61805ec343e3a0e8c6d02d4af362a7c3866d802b.tar.gz bcm5719-llvm-61805ec343e3a0e8c6d02d4af362a7c3866d802b.zip |
ELF: Rename IsTLS -> IsTls for consistency with other identifiers containing 'TLS'.
llvm-svn: 255856
-rw-r--r-- | lld/ELF/Symbols.h | 8 | ||||
-rw-r--r-- | lld/ELF/Writer.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 20523421109..1d59b73e6bf 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -77,7 +77,7 @@ public: bool isUsedInRegularObj() const { return IsUsedInRegularObj; } bool isUsedInDynamicReloc() const { return IsUsedInDynamicReloc; } void setUsedInDynamicReloc() { IsUsedInDynamicReloc = true; } - bool isTls() const { return IsTLS; } + bool isTls() const { return IsTls; } // Returns the symbol name. StringRef getName() const { return Name; } @@ -114,8 +114,8 @@ public: protected: SymbolBody(Kind K, StringRef Name, bool IsWeak, uint8_t Visibility, - bool IsTLS) - : SymbolKind(K), IsWeak(IsWeak), Visibility(Visibility), IsTLS(IsTLS), + bool IsTls) + : SymbolKind(K), IsWeak(IsWeak), Visibility(Visibility), IsTls(IsTls), Name(Name) { IsUsedInRegularObj = K != SharedKind && K != LazyKind; IsUsedInDynamicReloc = 0; @@ -126,7 +126,7 @@ protected: unsigned Visibility : 2; unsigned IsUsedInRegularObj : 1; unsigned IsUsedInDynamicReloc : 1; - unsigned IsTLS : 1; + unsigned IsTls : 1; unsigned DynamicSymbolTableIndex = 0; StringRef Name; Symbol *Backref = nullptr; diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index d672aaceb27..a16eae9f680 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -423,10 +423,10 @@ static bool compareOutputSections(OutputSectionBase<ELFT> *A, // PT_LOAD, so stick TLS sections directly before R/W sections. The TLS NOBITS // sections are placed here as they don't take up virtual address space in the // PT_LOAD. - bool AIsTLS = AFlags & SHF_TLS; - bool BIsTLS = BFlags & SHF_TLS; - if (AIsTLS != BIsTLS) - return AIsTLS; + bool AIsTls = AFlags & SHF_TLS; + bool BIsTls = BFlags & SHF_TLS; + if (AIsTls != BIsTls) + return AIsTls; // The next requirement we have is to put nobits sections last. The // reason is that the only thing the dynamic linker will see about |