Method LibLLVMOrcGetSymbolAddress
LibLLVMOrcGetSymbolAddress(LLVMOrcJITStackRef, out UInt64, String, Boolean)
Extended method to get a symbol address from the OrcJit
Declaration
public static LLVMErrorRef LibLLVMOrcGetSymbolAddress(LLVMOrcJITStackRef JITStack, out ulong RetAddr, string SymbolName, bool ExportedSymbolsOnly)
Parameters
public static LLVMErrorRef LibLLVMOrcGetSymbolAddress(LLVMOrcJITStackRef JITStack, out ulong RetAddr, string SymbolName, bool ExportedSymbolsOnly)
LLVMOrcJITStackRef | JITStack | OrcJit to get the symbol from |
UInt64 | RetAddr | Symbol address |
String | SymbolName | Name of the symbol to find |
Boolean | ExportedSymbolsOnly | flag to indicate if search includes only exported symbols |
Returns
LLVMErrorRef | error information |
Remarks
This function differs from LLVMOrcGetSymbolAddress(LLVMOrcJITStackRef, out UInt64, String) only in the inclusion of the
ExportedSymbolsOnly
parameter. This is required when running on Windows
based platforms as the object file created by the JIT doesn't have the functions marked as
exported, so it won't see the symbol unless ExportedSymbolsOnly is false.