[lld] r255856 - ELF: Rename IsTLS -> IsTls for consistency with other identifiers containing 'TLS'.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 16:12:03 PST 2015


Author: ruiu
Date: Wed Dec 16 18:12:03 2015
New Revision: 255856

URL: http://llvm.org/viewvc/llvm-project?rev=255856&view=rev
Log:
ELF: Rename IsTLS -> IsTls for consistency with other identifiers containing 'TLS'.

Modified:
    lld/trunk/ELF/Symbols.h
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=255856&r1=255855&r2=255856&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Wed Dec 16 18:12:03 2015
@@ -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;

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=255856&r1=255855&r2=255856&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Dec 16 18:12:03 2015
@@ -423,10 +423,10 @@ static bool compareOutputSections(Output
   // 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




More information about the llvm-commits mailing list