We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0fd77 commit d25db94Copy full SHA for d25db94
llvm/lib/MC/MCSymbolELF.cpp
@@ -40,8 +40,6 @@ enum {
40
41
void MCSymbolELF::setBinding(unsigned Binding) const {
42
setIsBindingSet();
43
- if (getType() == ELF::STT_SECTION && Binding != ELF::STB_LOCAL)
44
- setType(ELF::STT_NOTYPE);
45
unsigned Val;
46
switch (Binding) {
47
default:
@@ -93,8 +91,6 @@ unsigned MCSymbolELF::getBinding() const {
93
91
94
92
void MCSymbolELF::setType(unsigned Type) const {
95
96
- if (Type == ELF::STT_SECTION && getBinding() != ELF::STB_LOCAL)
97
- return;
98
switch (Type) {
99
100
llvm_unreachable("Unsupported Binding");
0 commit comments