LLVM  4.0.0
Macros | Variables
MCSectionMachO.cpp File Reference
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCContext.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
Include dependency graph for MCSectionMachO.cpp:

Go to the source code of this file.

Macros

#define ENTRY(ASMNAME, ENUM)   { MachO::ENUM, ASMNAME, #ENUM },
 

Variables

struct {
   StringRef   AssemblerName
 
   StringRef   EnumName
 
SectionTypeDescriptors [MachO::LAST_KNOWN_SECTION_TYPE+1]
 SectionTypeDescriptors - These are strings that describe the various section types. More...
 
struct {
   unsigned   AttrFlag
 
   StringRef   AssemblerName
 
   StringRef   EnumName
 
SectionAttrDescriptors []
 SectionAttrDescriptors - This is an array of descriptors for section attributes. More...
 

Macro Definition Documentation

#define ENTRY (   ASMNAME,
  ENUM 
)    { MachO::ENUM, ASMNAME, #ENUM },

Variable Documentation

StringRef AssemblerName

Definition at line 20 of file MCSectionMachO.cpp.

Referenced by llvm::MCSectionMachO::PrintSwitchToSection().

unsigned AttrFlag

Definition at line 53 of file MCSectionMachO.cpp.

Referenced by llvm::MCSectionMachO::PrintSwitchToSection().

StringRef EnumName

Definition at line 20 of file MCSectionMachO.cpp.

const { ... } SectionAttrDescriptors[]
Initial value:
= {
#define ENTRY(ASMNAME, ENUM)
{ 0, "none", StringRef() },
}
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:47

SectionAttrDescriptors - This is an array of descriptors for section attributes.

Unlike the SectionTypeDescriptors, this is not directly indexed by attribute, instead it is searched.

Referenced by llvm::MCSectionMachO::ParseSectionSpecifier(), and llvm::MCSectionMachO::PrintSwitchToSection().

const { ... } LAST_KNOWN_SECTION_TYPE+1]
Initial value:
= {
{ "regular", "S_REGULAR" },
{ StringRef(), "S_ZEROFILL" },
{ "cstring_literals", "S_CSTRING_LITERALS" },
{ "4byte_literals", "S_4BYTE_LITERALS" },
{ "8byte_literals", "S_8BYTE_LITERALS" },
{ "literal_pointers", "S_LITERAL_POINTERS" },
{ "non_lazy_symbol_pointers", "S_NON_LAZY_SYMBOL_POINTERS" },
{ "lazy_symbol_pointers", "S_LAZY_SYMBOL_POINTERS" },
{ "symbol_stubs", "S_SYMBOL_STUBS" },
{ "mod_init_funcs", "S_MOD_INIT_FUNC_POINTERS" },
{ "mod_term_funcs", "S_MOD_TERM_FUNC_POINTERS" },
{ "coalesced", "S_COALESCED" },
{ StringRef(), "S_GB_ZEROFILL" },
{ "interposing", "S_INTERPOSING" },
{ "16byte_literals", "S_16BYTE_LITERALS" },
{ StringRef(), "S_DTRACE_DOF" },
{ StringRef(), "S_LAZY_DYLIB_SYMBOL_POINTERS" },
{ "thread_local_regular", "S_THREAD_LOCAL_REGULAR" },
{ "thread_local_zerofill", "S_THREAD_LOCAL_ZEROFILL" },
{ "thread_local_variables", "S_THREAD_LOCAL_VARIABLES" },
{ "thread_local_variable_pointers",
"S_THREAD_LOCAL_VARIABLE_POINTERS" },
{ "thread_local_init_function_pointers",
"S_THREAD_LOCAL_INIT_FUNCTION_POINTERS"},
}
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:47

SectionTypeDescriptors - These are strings that describe the various section types.

This must be kept in order with and stay synchronized with the section type list.

Referenced by llvm::MCSectionMachO::ParseSectionSpecifier(), and llvm::MCSectionMachO::PrintSwitchToSection().