Extract code object memory from the given Source object file at Offset and of Size, and copy into OutputFileName.
Declared in <llvm/Object/OffloadBundle.h>
Error
extractCodeObject(
ObjectFile const& Source,
size_t Offset,
size_t Size,
StringRef OutputFileName);
Success or an error describing the failure.
| Name | Description |
|---|---|
| Source | Object file containing the code object. |
| Offset | Byte offset of the code object within Source. |
| Size | Size in bytes of the code object. |
| OutputFileName | Path of the file to write the extracted object to. |