diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /llvm/lib/MC/MCSymbolELF.cpp | |
parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) |
Notes
Diffstat (limited to 'llvm/lib/MC/MCSymbolELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSymbolELF.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCSymbolELF.cpp b/llvm/lib/MC/MCSymbolELF.cpp index a07c56c64f84..1830b87fd856 100644 --- a/llvm/lib/MC/MCSymbolELF.cpp +++ b/llvm/lib/MC/MCSymbolELF.cpp @@ -40,8 +40,6 @@ enum { void MCSymbolELF::setBinding(unsigned Binding) const { setIsBindingSet(); - if (getType() == ELF::STT_SECTION && Binding != ELF::STB_LOCAL) - setType(ELF::STT_NOTYPE); unsigned Val; switch (Binding) { default: @@ -93,8 +91,6 @@ unsigned MCSymbolELF::getBinding() const { void MCSymbolELF::setType(unsigned Type) const { unsigned Val; - if (Type == ELF::STT_SECTION && getBinding() != ELF::STB_LOCAL) - return; switch (Type) { default: llvm_unreachable("Unsupported Binding"); |