19 #ifndef LLVM_C_OBJECT_H 20 #define LLVM_C_OBJECT_H 24 #include "llvm/Config/llvm-config.h" 118 char **ErrorMessage);
LLVMBinaryType LLVMBinaryGetType(LLVMBinaryRef BR)
Retrieve the specific type of a binary.
LLVMBinaryRef LLVMMachOUniversalBinaryCopyObjectForArch(LLVMBinaryRef BR, const char *Arch, size_t ArchLen, char **ErrorMessage)
uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI)
MachO 64-bit, big endian.
ELF 64-bit, little endian.
struct LLVMOpaqueMemoryBuffer * LLVMMemoryBufferRef
LLVM uses a polymorphic type hierarchy which C cannot represent, therefore parameters must be passed ...
LLVMBool LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI, LLVMSymbolIteratorRef Sym)
LLVMBool LLVMObjectFileIsSectionIteratorAtEnd(LLVMBinaryRef BR, LLVMSectionIteratorRef SI)
Returns whether the given section iterator is at the end.
LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf)
Deprecated: Use LLVMCreateBinary instead.
MachO 32-bit, little endian.
const char * LLVMGetSectionContents(LLVMSectionIteratorRef SI)
LLVMBool LLVMIsRelocationIteratorAtEnd(LLVMSectionIteratorRef Section, LLVMRelocationIteratorRef RI)
void LLVMDisposeSymbolIterator(LLVMSymbolIteratorRef SI)
void LLVMMoveToContainingSection(LLVMSectionIteratorRef Sect, LLVMSymbolIteratorRef Sym)
LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf, LLVMContextRef Context, char **ErrorMessage)
Create a binary file from the given memory buffer.
struct LLVMOpaqueSectionIterator * LLVMSectionIteratorRef
struct LLVMOpaqueContext * LLVMContextRef
The top-level container for all LLVM global data.
void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI)
struct LLVMOpaqueBinary * LLVMBinaryRef
void LLVMMoveToNextRelocation(LLVMRelocationIteratorRef RI)
LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI)
Control flow instructions. These all have token chains.
void LLVMDisposeBinary(LLVMBinaryRef BR)
Dispose of a binary file.
uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI)
struct LLVMOpaqueSymbolIterator * LLVMSymbolIteratorRef
LLVMBool LLVMObjectFileIsSymbolIteratorAtEnd(LLVMBinaryRef BR, LLVMSymbolIteratorRef SI)
Returns whether the given symbol iterator is at the end.
struct LLVMOpaqueObjectFile * LLVMObjectFileRef
Deprecated: Use LLVMBinaryRef instead.
Windows resource (.res) file.
LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile, LLVMSectionIteratorRef SI)
Deprecated: Use LLVMObjectFileIsSectionIteratorAtEnd instead.
LLVMSymbolIteratorRef LLVMGetSymbols(LLVMObjectFileRef ObjectFile)
Deprecated: Use LLVMObjectFileCopySymbolIterator instead.
ELF 32-bit, little endian.
LLVMRelocationIteratorRef LLVMGetRelocations(LLVMSectionIteratorRef Section)
const char * LLVMGetSectionName(LLVMSectionIteratorRef SI)
LLVMSymbolIteratorRef LLVMObjectFileCopySymbolIterator(LLVMBinaryRef BR)
Retrieve a copy of the symbol iterator for this object file.
const char * LLVMGetSymbolName(LLVMSymbolIteratorRef SI)
MachO 64-bit, little endian.
void LLVMDisposeRelocationIterator(LLVMRelocationIteratorRef RI)
LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile)
Deprecated: Use LLVMObjectFileCopySectionIterator instead.
Mach-O Universal Binary file.
void LLVMMoveToNextSymbol(LLVMSymbolIteratorRef SI)
uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI)
const char * LLVMGetRelocationTypeName(LLVMRelocationIteratorRef RI)
struct LLVMOpaqueRelocationIterator * LLVMRelocationIteratorRef
uint64_t LLVMGetRelocationOffset(LLVMRelocationIteratorRef RI)
LLVMMemoryBufferRef LLVMBinaryCopyMemoryBuffer(LLVMBinaryRef BR)
Retrieves a copy of the memory buffer associated with this object file.
#define LLVM_C_EXTERN_C_END
#define LLVM_C_EXTERN_C_BEGIN
uint64_t LLVMGetRelocationType(LLVMRelocationIteratorRef RI)
void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile)
Deprecated: Use LLVMDisposeBinary instead.
MachO 32-bit, big endian.
LLVMBool LLVMIsSymbolIteratorAtEnd(LLVMObjectFileRef ObjectFile, LLVMSymbolIteratorRef SI)
Deprecated: Use LLVMObjectFileIsSymbolIteratorAtEnd instead.
uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI)
const char * LLVMGetRelocationValueString(LLVMRelocationIteratorRef RI)
LLVMSectionIteratorRef LLVMObjectFileCopySectionIterator(LLVMBinaryRef BR)
Retrieve a copy of the section iterator for this object file.
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI)