1 //===- llvm/MC/MCAsmInfoELF.h - ELF Asm info --------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_MC_MCASMINFOELF_H
11 #define LLVM_MC_MCASMINFOELF_H
13 #include "llvm/MC/MCAsmInfo.h"
17 class MCAsmInfoELF : public MCAsmInfo {
18 virtual void anchor();
19 MCSection *getNonexecutableStackSection(MCContext &Ctx) const final;
22 /// Targets which have non-executable stacks by default can set this to false
23 /// to disable the special section which requests a non-executable stack.
24 bool UsesNonexecutableStackSection = true;
29 } // end namespace llvm
31 #endif // LLVM_MC_MCASMINFOELF_H