[lld] 718cbd3 - [ELF] Delete two unneeded `referenced = true` after D65584
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 21:59:20 PST 2020
Author: Fangrui Song
Date: 2020-02-28T21:59:08-08:00
New Revision: 718cbd394ae0d286649bede06a0f4d60c6936453
URL: https://github.com/llvm/llvm-project/commit/718cbd394ae0d286649bede06a0f4d60c6936453
DIFF: https://github.com/llvm/llvm-project/commit/718cbd394ae0d286649bede06a0f4d60c6936453.diff
LOG: [ELF] Delete two unneeded `referenced = true` after D65584
Added:
Modified:
lld/ELF/Symbols.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp
index f5d5ca1f84f3..cb7ee8829e53 100644
--- a/lld/ELF/Symbols.cpp
+++ b/lld/ELF/Symbols.cpp
@@ -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;
}
}
More information about the llvm-commits
mailing list