LLVM  6.0.0svn
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, StringLiteral(ASMNAME), StringLiteral(#ENUM) },
 

Variables

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

Macro Definition Documentation

◆ ENTRY

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

Variable Documentation

◆ AssemblerName

StringLiteral AssemblerName

Definition at line 20 of file MCSectionMachO.cpp.

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

◆ AttrFlag

unsigned AttrFlag

Definition at line 65 of file MCSectionMachO.cpp.

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

◆ EnumName

StringLiteral EnumName

Definition at line 20 of file MCSectionMachO.cpp.

◆ SectionAttrDescriptors

constexpr { ... } SectionAttrDescriptors[]
Initial value:
= {
#define ENTRY(ASMNAME, ENUM)
{ 0, StringLiteral("none"), StringLiteral("") },
}
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
Definition: StringRef.h:857

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().

◆ SectionTypeDescriptors

constexpr { ... } LAST_KNOWN_SECTION_TYPE + 1]

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().