Skip to content

Commit

Permalink
[MC] Delete unused MCAsmInfoELF::UsesNonexecutableStackSection after …
Browse files Browse the repository at this point in the history
…EM_WEBASSEMBLY was removed in D48744

This removes remnant of D15969 which hasn't been removed by D48744.
  • Loading branch information
MaskRay committed Dec 15, 2019
1 parent 064e7d1 commit fdb408f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions llvm/include/llvm/MC/MCAsmInfoELF.h
Expand Up @@ -18,10 +18,6 @@ class MCAsmInfoELF : public MCAsmInfo {
MCSection *getNonexecutableStackSection(MCContext &Ctx) const final; MCSection *getNonexecutableStackSection(MCContext &Ctx) const final;


protected: protected:
/// Targets which have non-executable stacks by default can set this to false
/// to disable the special section which requests a non-executable stack.
bool UsesNonexecutableStackSection = true;

MCAsmInfoELF(); MCAsmInfoELF();
}; };


Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/MC/MCAsmInfoELF.cpp
Expand Up @@ -21,8 +21,6 @@ using namespace llvm;
void MCAsmInfoELF::anchor() {} void MCAsmInfoELF::anchor() {}


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


Expand Down
9 changes: 0 additions & 9 deletions llvm/test/CodeGen/WebAssembly/non-executable-stack.ll

This file was deleted.

0 comments on commit fdb408f

Please sign in to comment.