diff options
-rw-r--r-- | lld/ELF/SymbolTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index 08755b4ddb1..e5052281c46 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -165,7 +165,7 @@ static uint8_t getMinVisibility(uint8_t VA, uint8_t VB) { 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, StringRef Name) { : 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("@"); |