search for: instance_ptr

Displaying 1 result from an estimated 1 matches for "instance_ptr".

Did you mean: instance2str
2013 Sep 03
1
[LLVMdev] X86_thiscall
...er to the function. as_ptr retrieves the address of a member function pointer. Yes, this is a bit of a hack, but it works (I have tested it in other situations). vector<llvm::Type *> arguments; arguments.push_back(interface_group_ptr); arguments.push_back(any); arguments.push_back(instance_ptr); auto get_interface_type=FunctionType::get(any, arguments, false); interface_group_get_interface=Function::Create(get_interface_type, Function::ExternalLinkage, "get_interface", llvm_module); interface_group_get_interface->setCallingConv(CallingConv::X86_ThisCall); execu...