LLVM API Documentation

Defines | Functions | 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.

Defines

#define ENTRY(ASMNAME, ENUM)   { MCSectionMachO::ENUM, ASMNAME, #ENUM },
#define AttrFlagEnd   0xffffffff

Functions

static void StripSpaces (StringRef &Str)
 StripSpaces - This removes leading and trailing spaces from the StringRef.

Variables

struct {
   const char *   AssemblerName
   const char *   EnumName
SectionTypeDescriptors [MCSectionMachO::LAST_KNOWN_SECTION_TYPE+1]
struct {
   unsigned   AttrFlag
   const char *   AssemblerName
   const char *   EnumName
SectionAttrDescriptors []

Define Documentation

#define AttrFlagEnd   0xffffffff
#define ENTRY (   ASMNAME,
  ENUM 
)    { MCSectionMachO::ENUM, ASMNAME, #ENUM },

Function Documentation

static void StripSpaces ( StringRef Str) [static]

StripSpaces - This removes leading and trailing spaces from the StringRef.

Definition at line 168 of file MCSectionMachO.cpp.

References llvm::StringRef::back(), llvm::StringRef::empty(), llvm::StringRef::size(), and llvm::StringRef::substr().

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


Variable Documentation

const char* AssemblerName
const char * EnumName

Definition at line 20 of file MCSectionMachO.cpp.

struct { ... } SectionAttrDescriptors[] [static]

SectionAttrDescriptors - This is an array of descriptors for section attributes. Unlike the SectionTypeDescriptors, this is not directly indexed by attribute, instead it is searched. The last entry has an AttrFlagEnd AttrFlag value.

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

struct { ... } LAST_KNOWN_SECTION_TYPE+1] [static]

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