Displaying 1 result from an estimated 1 matches for "registersymbolfunct".
2012 Jul 07
2
[LLVMdev] Crash using the JIT on x86 but work on x64
...void* getMethodPointer(M method) // will only work with non-virtual methods
{
union MethodEntry
{
intptr_t offset;
void* function;
};
return static_cast<const MethodEntry*>(void_cast(&method))->function;
}
static llvm::Type* voidptr_type = NULL;
void registerSymbolFunction(const char* mangled_name, void* func)
{
// This is the JIT way for register a function
// Commented "sig.push_back" before defined function because they don't seem to need args
std::vector<llvm::Type*> sig;
llvm::FunctionType* FT = NULL;
llvm::Function* F...