-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Rick Buczynski edited this page Sep 15, 2018
·
1 revision
Welcome to the coolang wiki!
Useful snippets:
Printing a function pointer:
auto vtable_func_int =
builder_.CreatePtrToInt(vtable_func, builder_.getInt32Ty());
builder_.CreateCall(
GetLlvmFunction("IO", "out_int"),
{llvm::ConstantPointerNull::get(GetLlvmClassType("IO")->getPointerTo()),
vtable_func_int});