Skip to content

Commit fdb408f

Browse files
committed
[MC] Delete unused MCAsmInfoELF::UsesNonexecutableStackSection after EM_WEBASSEMBLY was removed in D48744
This removes remnant of D15969 which hasn't been removed by D48744.
1 parent 064e7d1 commit fdb408f

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

llvm/include/llvm/MC/MCAsmInfoELF.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ class MCAsmInfoELF : public MCAsmInfo {
1818
MCSection *getNonexecutableStackSection(MCContext &Ctx) const final;
1919

2020
protected:
21-
/// Targets which have non-executable stacks by default can set this to false
22-
/// to disable the special section which requests a non-executable stack.
23-
bool UsesNonexecutableStackSection = true;
24-
2521
MCAsmInfoELF();
2622
};
2723

llvm/lib/MC/MCAsmInfoELF.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ using namespace llvm;
2121
void MCAsmInfoELF::anchor() {}
2222

2323
MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
24-
if (!UsesNonexecutableStackSection)
25-
return nullptr;
2624
return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
2725
}
2826

llvm/test/CodeGen/WebAssembly/non-executable-stack.ll

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)