[lld] r274111 - [ELF] - Updated comments. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 01:36:37 PDT 2016


Author: grimar
Date: Wed Jun 29 03:36:36 2016
New Revision: 274111

URL: http://llvm.org/viewvc/llvm-project?rev=274111&view=rev
Log:
[ELF] - Updated comments. NFC.

As was suggested by Rafael EspĂ­ndola.

Modified:
    lld/trunk/ELF/SymbolTable.cpp

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=274111&r1=274110&r2=274111&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Wed Jun 29 03:36:36 2016
@@ -165,7 +165,7 @@ static uint8_t getMinVisibility(uint8_t
   return std::min(VA, VB);
 }
 
-// A symbol version may be included in a symbol name as a prefix after '@'.
+// A symbol version may be included in a symbol name as a suffix after '@'.
 // This function parses that part and returns a version ID number.
 static uint16_t getVersionId(Symbol *Sym, StringRef Name) {
   size_t VersionBegin = Name.find('@');
@@ -174,7 +174,7 @@ static uint16_t getVersionId(Symbol *Sym
                                                 : VER_NDX_LOCAL;
 
   // If symbol name contains '@' or '@@' we can assign its version id right
-  // here. '@@' means version by default. It is usually the most recent one.
+  // here. '@@' means the default version. It is usually the most recent one.
   // VERSYM_HIDDEN flag should be set for all non-default versions.
   StringRef Version = Name.drop_front(VersionBegin + 1);
   bool Default = Version.startswith("@");




More information about the llvm-commits mailing list