Method LibLLVMOrcGetSymbolAddressIn
LibLLVMOrcGetSymbolAddressIn(LLVMOrcJITStackRef, out UInt64, UInt64, String, Boolean)
Extended method to get a symbol address in a specific module from the OrcJit
Declaration
public static LLVMErrorRef LibLLVMOrcGetSymbolAddressIn(LLVMOrcJITStackRef JITStack, out ulong RetAddr, ulong H, string SymbolName, bool ExportedSymbolsOnly)
Parameters
public static LLVMErrorRef LibLLVMOrcGetSymbolAddressIn(LLVMOrcJITStackRef JITStack, out ulong RetAddr, ulong H, string SymbolName, bool ExportedSymbolsOnly)
LLVMOrcJITStackRef | JITStack | OrcJit to get the symbol from |
UInt64 | RetAddr | Symbol address |
UInt64 | H | Handle for the module to search in |
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 LLVMOrcGetSymbolAddressIn(LLVMOrcJITStackRef, out UInt64, 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.