Top Description Inners Constructors Methods
org.lwjgl.llvm

public abstract Class LLVMSymbolLookupCallback

extends Callback
implements LLVMSymbolLookupCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.llvm.LLVMSymbolLookupCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.llvm.LLVMSymbolLookupCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the CreateDisasm, CreateDisasmCPU and CreateDisasmCPUFeatures methods.

Type


char const * (*invoke) (
    void *DisInfo,
    uint64_t ReferenceValue,
    uint64_t *ReferenceType,
    uint64_t ReferencePC,
    char const **ReferenceName
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
LLVMSymbolLookupCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static LLVMSymbolLookupCallback

Returns:

the new LLVMSymbolLookupCallback
create
(long functionPointer)

Creates a LLVMSymbolLookupCallback instance from the specified function pointer.

public static LLVMSymbolLookupCallback
create(LLVMSymbolLookupCallbackI instance)

Creates a LLVMSymbolLookupCallback instance that delegates to the specified LLVMSymbolLookupCallbackI instance.

public static LLVMSymbolLookupCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

LLVMSymbolLookupCallbackback to summary
protected LLVMSymbolLookupCallback()
LLVMSymbolLookupCallbackback to summary
pack-priv LLVMSymbolLookupCallback(long functionPointer)

Method Detail

createback to summary
public static LLVMSymbolLookupCallback create(long functionPointer)

Creates a LLVMSymbolLookupCallback instance from the specified function pointer.

Returns:LLVMSymbolLookupCallback

the new LLVMSymbolLookupCallback

createback to summary
public static LLVMSymbolLookupCallback create(LLVMSymbolLookupCallbackI instance)

Creates a LLVMSymbolLookupCallback instance that delegates to the specified LLVMSymbolLookupCallbackI instance.

createSafeback to summary
public static LLVMSymbolLookupCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.llvm back to summary

private final Class LLVMSymbolLookupCallback.Container

extends LLVMSymbolLookupCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final LLVMSymbolLookupCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, LLVMSymbolLookupCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long DisInfo, long ReferenceValue, long ReferenceType, long ReferencePC, long ReferenceName)

Implements org.lwjgl.llvm.LLVMSymbolLookupCallbackI.invoke.

The type for the symbol lookup function.
Inherited from org.lwjgl.llvm.LLVMSymbolLookupCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final LLVMSymbolLookupCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, LLVMSymbolLookupCallbackI delegate)

Method Detail

invokeback to summary
public long invoke(long DisInfo, long ReferenceValue, long ReferenceType, long ReferencePC, long ReferenceName)

Implements org.lwjgl.llvm.LLVMSymbolLookupCallbackI.invoke.

Doc from org.lwjgl.llvm.LLVMSymbolLookupCallbackI.invoke.

The type for the symbol lookup function.

This may be called by the disassembler for things like adding a comment for a PC plus a constant offset load instruction to use a symbol name instead of a load address value. It is passed the block information is saved when the disassembler context is created and the ReferenceValue to look up as a symbol. If no symbol is found for the ReferenceValue NULL is returned. The ReferenceType of the instruction is passed indirectly as is the PC of the instruction in ReferencePC. If the output reference can be determined its type is returned indirectly in ReferenceType along with ReferenceName if any, or that is set to NULL.

Annotations
@Override