LLVM  10.0.0svn
MCAsmInfoELF.h
Go to the documentation of this file.
1 //===- llvm/MC/MCAsmInfoELF.h - ELF Asm info --------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_MC_MCASMINFOELF_H
10 #define LLVM_MC_MCASMINFOELF_H
11 
12 #include "llvm/MC/MCAsmInfo.h"
13 
14 namespace llvm {
15 
16 class MCAsmInfoELF : public MCAsmInfo {
17  virtual void anchor();
18  MCSection *getNonexecutableStackSection(MCContext &Ctx) const final;
19 
20 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.
24 
25  MCAsmInfoELF();
26 };
27 
28 } // end namespace llvm
29 
30 #endif // LLVM_MC_MCASMINFOELF_H
Instances of this class represent a uniqued identifier for a section in the current translation unit...
Definition: MCSection.h:38
This class represents lattice values for constants.
Definition: AllocatorList.h:23
bool UsesNonexecutableStackSection
Targets which have non-executable stacks by default can set this to false to disable the special sect...
Definition: MCAsmInfoELF.h:23
Context object for machine code objects.
Definition: MCContext.h:64
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition: MCAsmInfo.h:56