2010-01-23 06:39:22 +00:00
|
|
|
//===- 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 {
|
2010-02-12 21:54:28 +00:00
|
|
|
MCSA_Invalid = 0, ///< Not a valid directive.
|
2010-01-23 06:39:22 +00:00
|
|
|
|
|
|
|
// Various directives in alphabetical order.
|
2010-02-12 21:54:28 +00:00
|
|
|
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
|
2010-11-13 04:51:02 +00:00
|
|
|
MCSA_ELF_TypeGnuUniqueObject, /// .type _foo, @gnu_unique_object
|
2010-02-12 21:54:28 +00:00
|
|
|
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)
|
2010-11-19 18:39:33 +00:00
|
|
|
MCSA_SymbolResolver, ///< .symbol_resolver (MachO)
|
2010-02-12 21:54:28 +00:00
|
|
|
MCSA_PrivateExtern, ///< .private_extern (MachO)
|
|
|
|
MCSA_Protected, ///< .protected (ELF)
|
|
|
|
MCSA_Reference, ///< .reference (MachO)
|
|
|
|
MCSA_Weak, ///< .weak
|
|
|
|
MCSA_WeakDefinition, ///< .weak_definition (MachO)
|
2010-07-08 17:22:42 +00:00
|
|
|
MCSA_WeakReference, ///< .weak_reference (MachO)
|
|
|
|
MCSA_WeakDefAutoPrivate ///< .weak_def_can_be_hidden (MachO)
|
2010-01-23 06:39:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum MCAssemblerFlag {
|
2010-09-30 02:45:56 +00:00
|
|
|
MCAF_SyntaxUnified, ///< .syntax (ARM/ELF)
|
2010-11-05 22:08:08 +00:00
|
|
|
MCAF_SubsectionsViaSymbols, ///< .subsections_via_symbols (MachO)
|
2010-11-05 22:40:09 +00:00
|
|
|
MCAF_Code16, ///< .code 16
|
|
|
|
MCAF_Code32 ///< .code 32
|
2010-01-23 06:39:22 +00:00
|
|
|
};
|
2010-11-05 20:41:12 +00:00
|
|
|
|
2010-01-23 06:39:22 +00:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|