1 #include "tir/CompilationUnit.h"
6 #include "tir/Constant.h"
13 auto fnty = FunctionType::get(
14 ctx,
Type::getPointerTy(ctx), {
Type::getInt32Ty(ctx)});
16 fn->setExternalLinkage();
20 auto fnty = FunctionType::get(ctx,
Type::getVoidTy(ctx), {});
23 fn->setExternalLinkage();
29 for(
auto const* structTy : ctx_.pimpl().structTypes) {
30 structTy->printDetail(os) <<
"\n";
35 func->print(os) <<
"\n";