LLVM 20.0.0git
Namespaces | Macros | Variables
MCSectionMachO.cpp File Reference
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/SectionKind.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

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.
 
struct {
   unsigned   AttrFlag
 
   StringLiteral   AssemblerName
 
   StringLiteral   EnumName
 
SectionAttrDescriptors []
 SectionAttrDescriptors - This is an array of descriptors for section attributes.
 

Macro Definition Documentation

◆ ENTRY

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

Variable Documentation

◆ AssemblerName

StringLiteral AssemblerName

Definition at line 26 of file MCSectionMachO.cpp.

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

◆ AttrFlag

unsigned AttrFlag

Definition at line 73 of file MCSectionMachO.cpp.

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

◆ EnumName

StringLiteral EnumName

Definition at line 26 of file MCSectionMachO.cpp.

◆ 

constexpr struct { ... } 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:853

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

◆ 

constexpr struct { ... } SectionTypeDescriptors[MachO::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().