Allocate a memory block suitable for executable code.
Declared in <llvm/ExecutionEngine/RuntimeDyld.h>
virtual
uint8_t*
allocateCodeSection(
uintptr_t Size,
unsigned int Alignment,
unsigned int SectionID,
StringRef SectionName) = 0;
The SectionID is a unique identifier assigned by the RuntimeDyld instance, and optionally recorded by the memory manager to access a loaded section.
Pointer to the allocated code memory, or nullptr on failure.
| Name | Description |
|---|---|
| Size | Minimum number of bytes to allocate. |
| Alignment | Required alignment of the allocated block. |
| SectionID | Unique identifier for the section being allocated. |
| SectionName | Name of the section being allocated. |