|
LLVM
10.0.0
|
Typedefs | |
| typedef struct LLVMOpaqueSectionIterator * | LLVMSectionIteratorRef |
| typedef struct LLVMOpaqueSymbolIterator * | LLVMSymbolIteratorRef |
| typedef struct LLVMOpaqueRelocationIterator * | LLVMRelocationIteratorRef |
| typedef struct LLVMOpaqueObjectFile * | LLVMObjectFileRef |
| Deprecated: Use LLVMBinaryRef instead. More... | |
| typedef struct LLVMOpaqueObjectFile* LLVMObjectFileRef |
| typedef struct LLVMOpaqueRelocationIterator* LLVMRelocationIteratorRef |
| typedef struct LLVMOpaqueSectionIterator* LLVMSectionIteratorRef |
| typedef struct LLVMOpaqueSymbolIterator* LLVMSymbolIteratorRef |
| enum LLVMBinaryType |
| LLVMMemoryBufferRef LLVMBinaryCopyMemoryBuffer | ( | LLVMBinaryRef | BR | ) |
Retrieves a copy of the memory buffer associated with this object file.
The returned buffer is merely a shallow copy and does not own the actual backing buffer of the binary. Nevertheless, it is the responsibility of the caller to free it with LLVMDisposeMemoryBuffer.
Definition at line 78 of file Object.cpp.
References llvm::MemoryBuffer::getMemBuffer(), llvm::release, llvm::unwrap(), and llvm::wrap().
| LLVMBinaryType LLVMBinaryGetType | ( | LLVMBinaryRef | BR | ) |
Retrieve the specific type of a binary.
Definition at line 89 of file Object.cpp.
References getType(), llvm_unreachable, LLVMBinaryTypeArchive, LLVMBinaryTypeCOFF, LLVMBinaryTypeCOFFImportFile, LLVMBinaryTypeELF32B, LLVMBinaryTypeELF32L, LLVMBinaryTypeELF64B, LLVMBinaryTypeELF64L, LLVMBinaryTypeIR, LLVMBinaryTypeMachO32B, LLVMBinaryTypeMachO32L, LLVMBinaryTypeMachO64B, LLVMBinaryTypeMachO64L, LLVMBinaryTypeMachOUniversalBinary, LLVMBinaryTypeWasm, LLVMBinaryTypeWinRes, and llvm::unwrap().
| LLVMBinaryRef LLVMCreateBinary | ( | LLVMMemoryBufferRef | MemBuf, |
| LLVMContextRef | Context, | ||
| char ** | ErrorMessage | ||
| ) |
Create a binary file from the given memory buffer.
The exact type of the binary file will be inferred automatically, and the appropriate implementation selected. The context may be NULL except if the resulting file is an LLVM IR file.
The memory buffer is not consumed by this function. It is the responsibilty of the caller to free it with LLVMDisposeMemoryBuffer.
If NULL is returned, the ErrorMessage parameter is populated with the error's description. It is then the caller's responsibility to free this message by calling LLVMDisposeMessage.
Definition at line 64 of file Object.cpp.
References llvm::c_str(), llvm::object::createBinary(), llvm::Expected< T >::get(), llvm::Expected< T >::takeError(), llvm::toString(), llvm::unwrap(), and llvm::wrap().
| LLVMObjectFileRef LLVMCreateObjectFile | ( | LLVMMemoryBufferRef | MemBuf | ) |
Deprecated: Use LLVMCreateBinary instead.
Definition at line 178 of file Object.cpp.
References llvm::consumeError(), llvm::object::ObjectFile::createObjectFile(), llvm::Expected< T >::get(), llvm::MipsISD::Ret, llvm::Expected< T >::takeError(), llvm::unwrap(), and llvm::wrap().
| void LLVMDisposeBinary | ( | LLVMBinaryRef | BR | ) |
Dispose of a binary file.
The binary file does not own its backing buffer. It is the responsibilty of the caller to free it with LLVMDisposeMemoryBuffer.
Definition at line 85 of file Object.cpp.
References llvm::unwrap().
| void LLVMDisposeObjectFile | ( | LLVMObjectFileRef | ObjectFile | ) |
Deprecated: Use LLVMDisposeBinary instead.
Definition at line 193 of file Object.cpp.
References llvm::unwrap().
| void LLVMDisposeRelocationIterator | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 286 of file Object.cpp.
References llvm::unwrap().
| void LLVMDisposeSectionIterator | ( | LLVMSectionIteratorRef | SI | ) |
Definition at line 204 of file Object.cpp.
References llvm::unwrap().
| void LLVMDisposeSymbolIterator | ( | LLVMSymbolIteratorRef | SI | ) |
Definition at line 238 of file Object.cpp.
References llvm::unwrap().
| uint64_t LLVMGetRelocationOffset | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 330 of file Object.cpp.
References llvm::unwrap().
| LLVMRelocationIteratorRef LLVMGetRelocations | ( | LLVMSectionIteratorRef | Section | ) |
Definition at line 281 of file Object.cpp.
References SI, llvm::unwrap(), and llvm::wrap().
| LLVMSymbolIteratorRef LLVMGetRelocationSymbol | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 334 of file Object.cpp.
References llvm::unwrap(), and llvm::wrap().
| uint64_t LLVMGetRelocationType | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 339 of file Object.cpp.
References llvm::unwrap().
| const char* LLVMGetRelocationTypeName | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 344 of file Object.cpp.
References llvm::copy(), llvm::getTypeName(), llvm::safe_malloc(), llvm::SmallVectorBase::size(), and llvm::unwrap().
| const char* LLVMGetRelocationValueString | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 353 of file Object.cpp.
| uint64_t LLVMGetSectionAddress | ( | LLVMSectionIteratorRef | SI | ) |
Definition at line 271 of file Object.cpp.
References llvm::unwrap().
| LLVMBool LLVMGetSectionContainsSymbol | ( | LLVMSectionIteratorRef | SI, |
| LLVMSymbolIteratorRef | Sym | ||
| ) |
Definition at line 275 of file Object.cpp.
References llvm::unwrap().
| const char* LLVMGetSectionContents | ( | LLVMSectionIteratorRef | SI | ) |
Definition at line 264 of file Object.cpp.
References E, llvm::report_fatal_error(), and llvm::unwrap().
| const char* LLVMGetSectionName | ( | LLVMSectionIteratorRef | SI | ) |
Definition at line 253 of file Object.cpp.
References getName(), llvm::report_fatal_error(), and llvm::unwrap().
| LLVMSectionIteratorRef LLVMGetSections | ( | LLVMObjectFileRef | ObjectFile | ) |
Deprecated: Use LLVMObjectFileCopySectionIterator instead.
Definition at line 198 of file Object.cpp.
References llvm::X86II::OB, SI, llvm::unwrap(), and llvm::wrap().
| uint64_t LLVMGetSectionSize | ( | LLVMSectionIteratorRef | SI | ) |
Definition at line 260 of file Object.cpp.
References llvm::unwrap().
| uint64_t LLVMGetSymbolAddress | ( | LLVMSymbolIteratorRef | SI | ) |
Definition at line 313 of file Object.cpp.
References llvm::raw_ostream::flush(), llvm::logAllUnhandledErrors(), llvm::report_fatal_error(), llvm::MipsISD::Ret, llvm::Expected< T >::takeError(), and llvm::unwrap().
| const char* LLVMGetSymbolName | ( | LLVMSymbolIteratorRef | SI | ) |
Definition at line 301 of file Object.cpp.
References llvm::raw_ostream::flush(), getName(), llvm::logAllUnhandledErrors(), llvm::report_fatal_error(), llvm::MipsISD::Ret, llvm::Expected< T >::takeError(), and llvm::unwrap().
| LLVMSymbolIteratorRef LLVMGetSymbols | ( | LLVMObjectFileRef | ObjectFile | ) |
Deprecated: Use LLVMObjectFileCopySymbolIterator instead.
Definition at line 232 of file Object.cpp.
References llvm::X86II::OB, SI, llvm::unwrap(), and llvm::wrap().
| uint64_t LLVMGetSymbolSize | ( | LLVMSymbolIteratorRef | SI | ) |
Definition at line 325 of file Object.cpp.
References llvm::unwrap().
| LLVMBool LLVMIsRelocationIteratorAtEnd | ( | LLVMSectionIteratorRef | Section, |
| LLVMRelocationIteratorRef | RI | ||
| ) |
Definition at line 290 of file Object.cpp.
References llvm::unwrap().
| LLVMBool LLVMIsSectionIteratorAtEnd | ( | LLVMObjectFileRef | ObjectFile, |
| LLVMSectionIteratorRef | SI | ||
| ) |
Deprecated: Use LLVMObjectFileIsSectionIteratorAtEnd instead.
Definition at line 208 of file Object.cpp.
References llvm::X86II::OB, and llvm::unwrap().
| LLVMBool LLVMIsSymbolIteratorAtEnd | ( | LLVMObjectFileRef | ObjectFile, |
| LLVMSymbolIteratorRef | SI | ||
| ) |
Deprecated: Use LLVMObjectFileIsSymbolIteratorAtEnd instead.
Definition at line 242 of file Object.cpp.
References llvm::X86II::OB, and llvm::unwrap().
| LLVMBinaryRef LLVMMachOUniversalBinaryCopyObjectForArch | ( | LLVMBinaryRef | BR, |
| const char * | Arch, | ||
| size_t | ArchLen, | ||
| char ** | ErrorMessage | ||
| ) |
Definition at line 135 of file Object.cpp.
References llvm::c_str(), llvm::toString(), llvm::unwrap(), and llvm::wrap().
| void LLVMMoveToContainingSection | ( | LLVMSectionIteratorRef | Sect, |
| LLVMSymbolIteratorRef | Sym | ||
| ) |
Definition at line 218 of file Object.cpp.
References llvm::raw_ostream::flush(), llvm::object::getSection(), llvm::logAllUnhandledErrors(), llvm::report_fatal_error(), llvm::Expected< T >::takeError(), and llvm::unwrap().
| void LLVMMoveToNextRelocation | ( | LLVMRelocationIteratorRef | RI | ) |
Definition at line 295 of file Object.cpp.
References llvm::unwrap().
| void LLVMMoveToNextSection | ( | LLVMSectionIteratorRef | SI | ) |
Definition at line 214 of file Object.cpp.
References llvm::unwrap().
| void LLVMMoveToNextSymbol | ( | LLVMSymbolIteratorRef | SI | ) |
Definition at line 248 of file Object.cpp.
References llvm::unwrap().
| LLVMSectionIteratorRef LLVMObjectFileCopySectionIterator | ( | LLVMBinaryRef | BR | ) |
Retrieve a copy of the section iterator for this object file.
If there are no sections, the result is NULL.
The returned iterator is merely a shallow copy. Nevertheless, it is the responsibility of the caller to free it with LLVMDisposeSectionIterator.
Definition at line 149 of file Object.cpp.
References llvm::unwrap(), and llvm::wrap().
| LLVMSymbolIteratorRef LLVMObjectFileCopySymbolIterator | ( | LLVMBinaryRef | BR | ) |
Retrieve a copy of the symbol iterator for this object file.
If there are no symbols, the result is NULL.
The returned iterator is merely a shallow copy. Nevertheless, it is the responsibility of the caller to free it with LLVMDisposeSymbolIterator.
Definition at line 163 of file Object.cpp.
References llvm::unwrap(), and llvm::wrap().
| LLVMBool LLVMObjectFileIsSectionIteratorAtEnd | ( | LLVMBinaryRef | BR, |
| LLVMSectionIteratorRef | SI | ||
| ) |
Returns whether the given section iterator is at the end.
Definition at line 157 of file Object.cpp.
References llvm::unwrap().
| LLVMBool LLVMObjectFileIsSymbolIteratorAtEnd | ( | LLVMBinaryRef | BR, |
| LLVMSymbolIteratorRef | SI | ||
| ) |
Returns whether the given symbol iterator is at the end.
Definition at line 171 of file Object.cpp.
References llvm::unwrap().
1.8.13