LLVM  10.0.0svn
Functions
Object.cpp File Reference
#include "llvm-c/Object.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/MachOUniversal.h"
Include dependency graph for Object.cpp:

Go to the source code of this file.

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. More...
 
LLVMMemoryBufferRef LLVMBinaryCopyMemoryBuffer (LLVMBinaryRef BR)
 Retrieves a copy of the memory buffer associated with this object file. More...
 
void LLVMDisposeBinary (LLVMBinaryRef BR)
 Dispose of a binary file. More...
 
LLVMBinaryType LLVMBinaryGetType (LLVMBinaryRef BR)
 Retrieve the specific type of a binary. More...
 
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. More...
 
LLVMBool LLVMObjectFileIsSectionIteratorAtEnd (LLVMBinaryRef BR, LLVMSectionIteratorRef SI)
 Returns whether the given section iterator is at the end. More...
 
LLVMSymbolIteratorRef LLVMObjectFileCopySymbolIterator (LLVMBinaryRef BR)
 Retrieve a copy of the symbol iterator for this object file. More...
 
LLVMBool LLVMObjectFileIsSymbolIteratorAtEnd (LLVMBinaryRef BR, LLVMSymbolIteratorRef SI)
 Returns whether the given symbol iterator is at the end. More...
 
LLVMObjectFileRef LLVMCreateObjectFile (LLVMMemoryBufferRef MemBuf)
 Deprecated: Use LLVMCreateBinary instead. More...
 
void LLVMDisposeObjectFile (LLVMObjectFileRef ObjectFile)
 Deprecated: Use LLVMDisposeBinary instead. More...
 
LLVMSectionIteratorRef LLVMGetSections (LLVMObjectFileRef OF)
 Deprecated: Use LLVMObjectFileCopySectionIterator instead. More...
 
void LLVMDisposeSectionIterator (LLVMSectionIteratorRef SI)
 
LLVMBool LLVMIsSectionIteratorAtEnd (LLVMObjectFileRef OF, LLVMSectionIteratorRef SI)
 Deprecated: Use LLVMObjectFileIsSectionIteratorAtEnd instead. More...
 
void LLVMMoveToNextSection (LLVMSectionIteratorRef SI)
 
void LLVMMoveToContainingSection (LLVMSectionIteratorRef Sect, LLVMSymbolIteratorRef Sym)
 
LLVMSymbolIteratorRef LLVMGetSymbols (LLVMObjectFileRef OF)
 Deprecated: Use LLVMObjectFileCopySymbolIterator instead. More...
 
void LLVMDisposeSymbolIterator (LLVMSymbolIteratorRef SI)
 
LLVMBool LLVMIsSymbolIteratorAtEnd (LLVMObjectFileRef OF, LLVMSymbolIteratorRef SI)
 Deprecated: Use LLVMObjectFileIsSymbolIteratorAtEnd instead. More...
 
void LLVMMoveToNextSymbol (LLVMSymbolIteratorRef SI)
 
const charLLVMGetSectionName (LLVMSectionIteratorRef SI)
 
uint64_t LLVMGetSectionSize (LLVMSectionIteratorRef SI)
 
const charLLVMGetSectionContents (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 charLLVMGetSymbolName (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 charLLVMGetRelocationTypeName (LLVMRelocationIteratorRef RI)
 
const charLLVMGetRelocationValueString (LLVMRelocationIteratorRef RI)
 

Function Documentation

◆ unwrap() [1/4]

OwningBinary<ObjectFile>* unwrap ( LLVMObjectFileRef  OF)
inline

Definition at line 23 of file Object.cpp.

◆ unwrap() [2/4]

section_iterator* unwrap ( LLVMSectionIteratorRef  SI)
inline

Definition at line 32 of file Object.cpp.

References SI.

◆ unwrap() [3/4]

symbol_iterator* unwrap ( LLVMSymbolIteratorRef  SI)
inline

Definition at line 42 of file Object.cpp.

References SI.

◆ unwrap() [4/4]

relocation_iterator* unwrap ( LLVMRelocationIteratorRef  SI)
inline

Definition at line 52 of file Object.cpp.

References SI.

◆ wrap() [1/4]

LLVMObjectFileRef wrap ( const OwningBinary< ObjectFile > *  OF)
inline

Definition at line 27 of file Object.cpp.

◆ wrap() [2/4]

LLVMSectionIteratorRef wrap ( const section_iterator *  SI)
inline

Definition at line 37 of file Object.cpp.

References SI.

◆ wrap() [3/4]

LLVMSymbolIteratorRef wrap ( const symbol_iterator *  SI)
inline

Definition at line 47 of file Object.cpp.

References SI.

◆ wrap() [4/4]

LLVMRelocationIteratorRef wrap ( const relocation_iterator *  SI)
inline

Definition at line 57 of file Object.cpp.

References SI.