[lld] 19e37a7 - [ELF] Update comment. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 14:09:06 PST 2022


Author: Fangrui Song
Date: 2022-02-24T14:09:00-08:00
New Revision: 19e37a7415b335563df852430d70be3a22eb47f0

URL: https://github.com/llvm/llvm-project/commit/19e37a7415b335563df852430d70be3a22eb47f0
DIFF: https://github.com/llvm/llvm-project/commit/19e37a7415b335563df852430d70be3a22eb47f0.diff

LOG: [ELF] Update comment. NFC

Added: 
    

Modified: 
    lld/ELF/Symbols.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp
index 7a8e387239f5f..b142ea6812b7f 100644
--- a/lld/ELF/Symbols.cpp
+++ b/lld/ELF/Symbols.cpp
@@ -527,8 +527,7 @@ void Symbol::resolveUndefined(const Undefined &other) {
   }
 }
 
-// Compare two symbols. Return 1 if the new symbol should win, -1 if
-// the new symbol should lose, or 0 if there is a conflict.
+// Compare two symbols. Return true if the new symbol should win.
 bool Symbol::compare(const Defined &other) const {
   if (LLVM_UNLIKELY(isCommon())) {
     if (config->warnCommon)


        


More information about the llvm-commits mailing list