summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index de0d45bea1c..dd435173101 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -105,11 +105,6 @@ BitcodeCompiler::~BitcodeCompiler() = default;
static void undefine(Symbol *S) {
replaceBody<Undefined>(S, S->body()->getName(), /*IsLocal=*/false,
STV_DEFAULT, S->body()->Type, nullptr);
- // It shouldn't normally matter what the binding is, but if a bug in the LTO
- // implementation causes it to fail to provide a definition for a symbol,
- // setting the binding to STB_GLOBAL will cause the linker to report an
- // undefined symbol error, even if the definition was weak.
- S->Binding = STB_GLOBAL;
}
void BitcodeCompiler::add(BitcodeFile &F) {
OpenPOWER on IntegriCloud