2013-10-16 03:34:32 +02:00
|
|
|
//===-- llvm/MC/MCAsmInfoELF.h - ELF Asm info -------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_MC_MCASMINFOELF_H
|
|
|
|
#define LLVM_MC_MCASMINFOELF_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCAsmInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class MCAsmInfoELF : public MCAsmInfo {
|
|
|
|
virtual void anchor();
|
2015-05-21 21:20:38 +02:00
|
|
|
MCSection *getNonexecutableStackSection(MCContext &Ctx) const final;
|
2014-10-15 17:44:16 +02:00
|
|
|
|
2013-10-16 03:34:32 +02:00
|
|
|
protected:
|
2016-01-16 00:59:13 +01:00
|
|
|
/// 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;
|
|
|
|
|
2013-10-16 03:34:32 +02:00
|
|
|
MCAsmInfoELF();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|