The special cases added by rL293936 were no longer needed after rL296180
disallowed redefinition of section symbols.
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:
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");