[lld] r265533 - Rename a few Visibility arguments to StOther.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 05:14:31 PDT 2016


Author: rafael
Date: Wed Apr  6 07:14:31 2016
New Revision: 265533

URL: http://llvm.org/viewvc/llvm-project?rev=265533&view=rev
Log:
Rename a few Visibility arguments to StOther.

Modified:
    lld/trunk/ELF/Symbols.cpp

Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=265533&r1=265532&r2=265533&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Wed Apr  6 07:14:31 2016
@@ -224,16 +224,16 @@ int SymbolBody::compare(SymbolBody *Othe
   return isCommon() ? -1 : 1;
 }
 
-Defined::Defined(Kind K, StringRef Name, uint8_t Binding, uint8_t Visibility,
+Defined::Defined(Kind K, StringRef Name, uint8_t Binding, uint8_t StOther,
                  uint8_t Type)
-    : SymbolBody(K, Name, Binding, Visibility, Type) {}
+    : SymbolBody(K, Name, Binding, StOther, Type) {}
 
-Defined::Defined(Kind K, uint32_t NameOffset, uint8_t Visibility, uint8_t Type)
-    : SymbolBody(K, NameOffset, Visibility, Type) {}
+Defined::Defined(Kind K, uint32_t NameOffset, uint8_t StOther, uint8_t Type)
+    : SymbolBody(K, NameOffset, StOther, Type) {}
 
-DefinedBitcode::DefinedBitcode(StringRef Name, bool IsWeak, uint8_t Visibility)
+DefinedBitcode::DefinedBitcode(StringRef Name, bool IsWeak, uint8_t StOther)
     : Defined(DefinedBitcodeKind, Name, IsWeak ? STB_WEAK : STB_GLOBAL,
-              Visibility, 0 /* Type */) {}
+              StOther, 0 /* Type */) {}
 
 bool DefinedBitcode::classof(const SymbolBody *S) {
   return S->kind() == DefinedBitcodeKind;
@@ -244,13 +244,13 @@ Undefined::Undefined(SymbolBody::Kind K,
     : SymbolBody(K, N, Binding, Other, Type), CanKeepUndefined(false) {}
 
 Undefined::Undefined(SymbolBody::Kind K, uint32_t NameOffset,
-                     uint8_t Visibility, uint8_t Type)
-    : SymbolBody(K, NameOffset, Visibility, Type), CanKeepUndefined(false) {}
+                     uint8_t StOther, uint8_t Type)
+    : SymbolBody(K, NameOffset, StOther, Type), CanKeepUndefined(false) {}
 
-Undefined::Undefined(StringRef N, bool IsWeak, uint8_t Visibility,
+Undefined::Undefined(StringRef N, bool IsWeak, uint8_t StOther,
                      bool CanKeepUndefined)
     : Undefined(SymbolBody::UndefinedKind, N, IsWeak ? STB_WEAK : STB_GLOBAL,
-                Visibility, 0 /* Type */) {
+                StOther, 0 /* Type */) {
   this->CanKeepUndefined = CanKeepUndefined;
 }
 
@@ -271,14 +271,14 @@ UndefinedElf<ELFT>::UndefinedElf(const E
 template <typename ELFT>
 DefinedSynthetic<ELFT>::DefinedSynthetic(StringRef N, uintX_t Value,
                                          OutputSectionBase<ELFT> &Section,
-                                         uint8_t Visibility)
-    : Defined(SymbolBody::DefinedSyntheticKind, N, STB_GLOBAL, Visibility,
+                                         uint8_t StOther)
+    : Defined(SymbolBody::DefinedSyntheticKind, N, STB_GLOBAL, StOther,
               0 /* Type */),
       Value(Value), Section(Section) {}
 
 DefinedCommon::DefinedCommon(StringRef N, uint64_t Size, uint64_t Alignment,
-                             uint8_t Binding, uint8_t Visibility, uint8_t Type)
-    : Defined(SymbolBody::DefinedCommonKind, N, Binding, Visibility, Type),
+                             uint8_t Binding, uint8_t StOther, uint8_t Type)
+    : Defined(SymbolBody::DefinedCommonKind, N, Binding, StOther, Type),
       Alignment(Alignment), Size(Size) {}
 
 std::unique_ptr<InputFile> Lazy::getMember() {




More information about the llvm-commits mailing list