aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCDirectives.h
blob: 609a9a4a6df32fced612822fa653af2bc48da566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//===- MCDirectives.h - Enums for directives on various targets -*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines various enums that represent target-specific directives.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_MC_MCDIRECTIVES_H
#define LLVM_MC_MCDIRECTIVES_H

namespace llvm {

enum MCSymbolAttr {
  MCSA_Invalid = 0,    /// Not a valid directive.

  // Various directives in alphabetical order.
  MCSA_ELF_TypeFunction,    /// .type _foo, STT_FUNC  # aka @function
  MCSA_ELF_TypeIndFunction, /// .type _foo, STT_GNU_IFUNC
  MCSA_ELF_TypeObject,      /// .type _foo, STT_OBJECT  # aka @object
  MCSA_ELF_TypeTLS,         /// .type _foo, STT_TLS     # aka @tls_object
  MCSA_ELF_TypeCommon,      /// .type _foo, STT_COMMON  # aka @common
  MCSA_ELF_TypeNoType,      /// .type _foo, STT_NOTYPE  # aka @notype
  MCSA_Global,              /// .globl
  MCSA_Hidden,              /// .hidden (ELF)
  MCSA_IndirectSymbol,      /// .indirect_symbol (MachO)
  MCSA_Internal,            /// .internal (ELF)
  MCSA_LazyReference,       /// .lazy_reference (MachO)
  MCSA_Local,               /// .local (ELF)
  MCSA_NoDeadStrip,         /// .no_dead_strip (MachO)
  MCSA_PrivateExtern,       /// .private_extern (MachO)
  MCSA_Protected,           /// .protected (ELF)
  MCSA_Reference,           /// .reference (MachO)
  MCSA_Weak,                /// .weak
  MCSA_WeakDefinition,      /// .weak_definition (MachO)
  MCSA_WeakReference        /// .weak_reference (MachO)
};

enum MCAssemblerFlag {
  MCAF_SubsectionsViaSymbols  /// .subsections_via_symbols (MachO)
};
  
} // end namespace llvm

#endif