ELF2: Rename getMostConstrainingVisibility -> getVisibility. NFC.
The previous name was too long.
llvm-svn: 250920
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp
index e92c046..5a1596a 100644
--- a/lld/ELF/Symbols.cpp
+++ b/lld/ELF/Symbols.cpp
@@ -40,10 +40,8 @@
if (L > R)
return -Other->compare<ELFT>(this);
- uint8_t LV = getMostConstrainingVisibility();
- uint8_t RV = Other->getMostConstrainingVisibility();
- MostConstrainingVisibility = getMinVisibility(LV, RV);
- Other->MostConstrainingVisibility = MostConstrainingVisibility;
+ Visibility = Other->Visibility =
+ getMinVisibility(Visibility, Other->Visibility);
IsUsedInRegularObj |= Other->IsUsedInRegularObj;
Other->IsUsedInRegularObj |= IsUsedInRegularObj;