Deleted Added
full compact
MCDirectives.h (202878) MCDirectives.h (203954)
1//===- MCDirectives.h - Enums for directives on various targets -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines various enums that represent target-specific directives.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_MC_MCDIRECTIVES_H
15#define LLVM_MC_MCDIRECTIVES_H
16
17namespace llvm {
18
19enum MCSymbolAttr {
1//===- MCDirectives.h - Enums for directives on various targets -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines various enums that represent target-specific directives.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_MC_MCDIRECTIVES_H
15#define LLVM_MC_MCDIRECTIVES_H
16
17namespace llvm {
18
19enum MCSymbolAttr {
20 MCSA_Invalid = 0, /// Not a valid directive.
20 MCSA_Invalid = 0, ///< Not a valid directive.
21
22 // Various directives in alphabetical order.
21
22 // Various directives in alphabetical order.
23 MCSA_Global, /// .globl
24 MCSA_Hidden, /// .hidden (ELF)
25 MCSA_IndirectSymbol, /// .indirect_symbol (MachO)
26 MCSA_Internal, /// .internal (ELF)
27 MCSA_LazyReference, /// .lazy_reference (MachO)
28 MCSA_Local, /// .local (ELF)
29 MCSA_NoDeadStrip, /// .no_dead_strip (MachO)
30 MCSA_PrivateExtern, /// .private_extern (MachO)
31 MCSA_Protected, /// .protected (ELF)
32 MCSA_Reference, /// .reference (MachO)
33 MCSA_Weak, /// .weak
34 MCSA_WeakDefinition, /// .weak_definition (MachO)
35 MCSA_WeakReference /// .weak_reference (MachO)
23 MCSA_ELF_TypeFunction, ///< .type _foo, STT_FUNC # aka @function
24 MCSA_ELF_TypeIndFunction, ///< .type _foo, STT_GNU_IFUNC
25 MCSA_ELF_TypeObject, ///< .type _foo, STT_OBJECT # aka @object
26 MCSA_ELF_TypeTLS, ///< .type _foo, STT_TLS # aka @tls_object
27 MCSA_ELF_TypeCommon, ///< .type _foo, STT_COMMON # aka @common
28 MCSA_ELF_TypeNoType, ///< .type _foo, STT_NOTYPE # aka @notype
29 MCSA_Global, ///< .globl
30 MCSA_Hidden, ///< .hidden (ELF)
31 MCSA_IndirectSymbol, ///< .indirect_symbol (MachO)
32 MCSA_Internal, ///< .internal (ELF)
33 MCSA_LazyReference, ///< .lazy_reference (MachO)
34 MCSA_Local, ///< .local (ELF)
35 MCSA_NoDeadStrip, ///< .no_dead_strip (MachO)
36 MCSA_PrivateExtern, ///< .private_extern (MachO)
37 MCSA_Protected, ///< .protected (ELF)
38 MCSA_Reference, ///< .reference (MachO)
39 MCSA_Weak, ///< .weak
40 MCSA_WeakDefinition, ///< .weak_definition (MachO)
41 MCSA_WeakReference ///< .weak_reference (MachO)
36};
37
38enum MCAssemblerFlag {
42};
43
44enum MCAssemblerFlag {
39 MCAF_SubsectionsViaSymbols /// .subsections_via_symbols (MachO)
45 MCAF_SubsectionsViaSymbols ///< .subsections_via_symbols (MachO)
40};
41
42} // end namespace llvm
43
44#endif
46};
47
48} // end namespace llvm
49
50#endif