LLVM API Documentation

llvm::MachOSegment Struct Reference

#include <MachO.h>

Collaboration diagram for llvm::MachOSegment:
[legend]

List of all members.

Public Types

enum  {
  SEG_VM_PROT_NONE = VM_PROT_NONE, SEG_VM_PROT_READ = VM_PROT_READ, SEG_VM_PROT_WRITE = VM_PROT_WRITE, SEG_VM_PROT_EXECUTE = VM_PROT_EXECUTE,
  SEG_VM_PROT_ALL = VM_PROT_ALL
}
enum  { LC_SEGMENT = 0x01, LC_SEGMENT_64 = 0x19 }

Public Member Functions

unsigned cmdSize (bool is64Bit) const
 MachOSegment (const std::string &seg, bool is64Bit)

Public Attributes

uint32_t cmd
uint32_t cmdsize
std::string segname
uint64_t vmaddr
uint64_t vmsize
uint64_t fileoff
uint64_t filesize
uint32_t maxprot
uint32_t initprot
uint32_t nsects
uint32_t flags


Detailed Description

MachOSegment - This struct contains the necessary information to emit the load commands for each section in the file.

Definition at line 207 of file MachO.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
SEG_VM_PROT_NONE 
SEG_VM_PROT_READ 
SEG_VM_PROT_WRITE 
SEG_VM_PROT_EXECUTE 
SEG_VM_PROT_ALL 

Definition at line 240 of file MachO.h.

anonymous enum

Enumerator:
LC_SEGMENT 
LC_SEGMENT_64 

Definition at line 249 of file MachO.h.


Constructor & Destructor Documentation

llvm::MachOSegment::MachOSegment ( const std::string &  seg,
bool  is64Bit 
) [inline]

Definition at line 262 of file MachO.h.


Member Function Documentation

unsigned llvm::MachOSegment::cmdSize ( bool  is64Bit  )  const [inline]

cmdSize - This routine returns the size of the MachOSection as written to disk, depending on whether the destination is a 64 bit Mach-O file.

Definition at line 255 of file MachO.h.


Member Data Documentation

Definition at line 208 of file MachO.h.

Definition at line 209 of file MachO.h.

Definition at line 210 of file MachO.h.

Definition at line 211 of file MachO.h.

Definition at line 212 of file MachO.h.

Definition at line 213 of file MachO.h.

Definition at line 214 of file MachO.h.

Definition at line 215 of file MachO.h.

Definition at line 216 of file MachO.h.

Definition at line 217 of file MachO.h.

Definition at line 218 of file MachO.h.


The documentation for this struct was generated from the following file: