[ELF] Delete two unneeded `referenced = true` after D65584
authorFangrui Song <maskray@google.com>
Sat, 29 Feb 2020 05:26:36 +0000 (21:26 -0800)
committerFangrui Song <maskray@google.com>
Sat, 29 Feb 2020 05:59:08 +0000 (21:59 -0800)
lld/ELF/Symbols.cpp

index f5d5ca1..cb7ee88 100644 (file)
@@ -514,7 +514,6 @@ void Symbol::resolveUndefined(const Undefined &other) {
     // reference is weak.
     if (other.binding != STB_WEAK || !referenced)
       binding = other.binding;
-    referenced = true;
   }
 }
 
@@ -687,7 +686,6 @@ void Symbol::resolveShared(const SharedSymbol &other) {
     uint8_t bind = binding;
     replace(other);
     binding = bind;
-    referenced = true;
   }
 }