LLVM API Documentation

llvm::MachOWriter::MachOSegment Struct Reference

#include <MachOWriter.h>

Collaboration diagram for llvm::MachOWriter::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 244 of file MachOWriter.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 277 of file MachOWriter.h.

anonymous enum

Enumerator:
LC_SEGMENT 
LC_SEGMENT_64 

Definition at line 286 of file MachOWriter.h.


Constructor & Destructor Documentation

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

Definition at line 299 of file MachOWriter.h.


Member Function Documentation

unsigned llvm::MachOWriter::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 292 of file MachOWriter.h.


Member Data Documentation

Definition at line 245 of file MachOWriter.h.

Definition at line 246 of file MachOWriter.h.

Definition at line 247 of file MachOWriter.h.

Definition at line 248 of file MachOWriter.h.

Definition at line 249 of file MachOWriter.h.

Definition at line 250 of file MachOWriter.h.

Definition at line 251 of file MachOWriter.h.

Definition at line 252 of file MachOWriter.h.

Definition at line 253 of file MachOWriter.h.

Definition at line 254 of file MachOWriter.h.

Definition at line 255 of file MachOWriter.h.


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