LLVM: lib/Object/Object.cpp File Reference (original) (raw)

Functions

OwningBinary< ObjectFile > *

unwrap (LLVMObjectFileRef OF)

LLVMObjectFileRef

wrap (const OwningBinary< ObjectFile > *OF)

section_iterator *

unwrap (LLVMSectionIteratorRef SI)

LLVMSectionIteratorRef

wrap (const section_iterator *SI)

symbol_iterator *

unwrap (LLVMSymbolIteratorRef SI)

LLVMSymbolIteratorRef

wrap (const symbol_iterator *SI)

relocation_iterator *

unwrap (LLVMRelocationIteratorRef SI)

LLVMRelocationIteratorRef

wrap (const relocation_iterator *SI)

LLVMBinaryRef

LLVMCreateBinary (LLVMMemoryBufferRef MemBuf, LLVMContextRef Context, char **ErrorMessage)

Create a binary file from the given memory buffer.

LLVMMemoryBufferRef

LLVMBinaryCopyMemoryBuffer (LLVMBinaryRef BR)

Retrieves a copy of the memory buffer associated with this object file.

void

LLVMDisposeBinary (LLVMBinaryRef BR)

Dispose of a binary file.

LLVMBinaryType

LLVMBinaryGetType (LLVMBinaryRef BR)

Retrieve the specific type of a binary.

LLVMBinaryRef

LLVMMachOUniversalBinaryCopyObjectForArch (LLVMBinaryRef BR, const char *Arch, size_t ArchLen, char **ErrorMessage)

LLVMSectionIteratorRef

LLVMObjectFileCopySectionIterator (LLVMBinaryRef BR)

Retrieve a copy of the section iterator for this object file.

LLVMBool

LLVMObjectFileIsSectionIteratorAtEnd (LLVMBinaryRef BR, LLVMSectionIteratorRef SI)

Returns whether the given section iterator is at the end.

LLVMSymbolIteratorRef

LLVMObjectFileCopySymbolIterator (LLVMBinaryRef BR)

Retrieve a copy of the symbol iterator for this object file.

LLVMBool

LLVMObjectFileIsSymbolIteratorAtEnd (LLVMBinaryRef BR, LLVMSymbolIteratorRef SI)

Returns whether the given symbol iterator is at the end.

LLVMObjectFileRef

LLVMCreateObjectFile (LLVMMemoryBufferRef MemBuf)

Deprecated: Use LLVMCreateBinary instead.

void

LLVMDisposeObjectFile (LLVMObjectFileRef ObjectFile)

Deprecated: Use LLVMDisposeBinary instead.

LLVMSectionIteratorRef

LLVMGetSections (LLVMObjectFileRef OF)

Deprecated: Use LLVMObjectFileCopySectionIterator instead.

void

LLVMDisposeSectionIterator (LLVMSectionIteratorRef SI)

LLVMBool

LLVMIsSectionIteratorAtEnd (LLVMObjectFileRef OF, LLVMSectionIteratorRef SI)

Deprecated: Use LLVMObjectFileIsSectionIteratorAtEnd instead.

void

LLVMMoveToNextSection (LLVMSectionIteratorRef SI)

void

LLVMMoveToContainingSection (LLVMSectionIteratorRef Sect, LLVMSymbolIteratorRef Sym)

LLVMSymbolIteratorRef

LLVMGetSymbols (LLVMObjectFileRef OF)

Deprecated: Use LLVMObjectFileCopySymbolIterator instead.

void

LLVMDisposeSymbolIterator (LLVMSymbolIteratorRef SI)

LLVMBool

LLVMIsSymbolIteratorAtEnd (LLVMObjectFileRef OF, LLVMSymbolIteratorRef SI)

Deprecated: Use LLVMObjectFileIsSymbolIteratorAtEnd instead.

void

LLVMMoveToNextSymbol (LLVMSymbolIteratorRef SI)

const char *

LLVMGetSectionName (LLVMSectionIteratorRef SI)

uint64_t

LLVMGetSectionSize (LLVMSectionIteratorRef SI)

const char *

LLVMGetSectionContents (LLVMSectionIteratorRef SI)

uint64_t

LLVMGetSectionAddress (LLVMSectionIteratorRef SI)

LLVMBool

LLVMGetSectionContainsSymbol (LLVMSectionIteratorRef SI, LLVMSymbolIteratorRef Sym)

LLVMRelocationIteratorRef

LLVMGetRelocations (LLVMSectionIteratorRef Section)

void

LLVMDisposeRelocationIterator (LLVMRelocationIteratorRef SI)

LLVMBool

LLVMIsRelocationIteratorAtEnd (LLVMSectionIteratorRef Section, LLVMRelocationIteratorRef SI)

void

LLVMMoveToNextRelocation (LLVMRelocationIteratorRef SI)

const char *

LLVMGetSymbolName (LLVMSymbolIteratorRef SI)

uint64_t

LLVMGetSymbolAddress (LLVMSymbolIteratorRef SI)

uint64_t

LLVMGetSymbolSize (LLVMSymbolIteratorRef SI)

uint64_t

LLVMGetRelocationOffset (LLVMRelocationIteratorRef RI)

LLVMSymbolIteratorRef

LLVMGetRelocationSymbol (LLVMRelocationIteratorRef RI)

uint64_t

LLVMGetRelocationType (LLVMRelocationIteratorRef RI)

const char *

LLVMGetRelocationTypeName (LLVMRelocationIteratorRef RI)

const char *

LLVMGetRelocationValueString (LLVMRelocationIteratorRef RI)