Skip to content
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});
Clone this wiki locally