1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[MC] Delete unused MCAsmInfoELF::UsesNonexecutableStackSection after EM_WEBASSEMBLY was removed in D48744

This removes remnant of D15969 which hasn't been removed by D48744.
This commit is contained in:
Fangrui Song 2019-12-15 15:39:30 -08:00
parent 25046f85e4
commit 694df893ac
3 changed files with 0 additions and 15 deletions

View File

@ -18,10 +18,6 @@ class MCAsmInfoELF : public MCAsmInfo {
MCSection *getNonexecutableStackSection(MCContext &Ctx) const final;
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();
};

View File

@ -21,8 +21,6 @@ using namespace llvm;
void MCAsmInfoELF::anchor() {}
MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
if (!UsesNonexecutableStackSection)
return nullptr;
return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
}

View File

@ -1,9 +0,0 @@
; RUN: llc < %s -asm-verbose=false | FileCheck %s
; Test that we don't emit anything declaring a non-executable stack,
; because wasm's stack is always non-executable.
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"
; CHECK-NOT: .note.GNU-stack