forked from OSchip/llvm-project
[ELF] - Updated comments. NFC.
As was suggested by Rafael Espíndola. llvm-svn: 274111
This commit is contained in:
parent
2c880cf9b1
commit
9fc1d4ed75
|
@ -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("@");
|
||||
|
|
Loading…
Reference in New Issue