aboutsummaryrefslogtreecommitdiff
path: root/src/cffc.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cffc.hff')
-rw-r--r--src/cffc.hff7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cffc.hff b/src/cffc.hff
index 2504fba..f78c61c 100644
--- a/src/cffc.hff
+++ b/src/cffc.hff
@@ -286,6 +286,7 @@ struct Decl {
name *const u8,
loc Loc,
externp bool,
+ toplevel bool,
u enum union {
Let Var,
Static Var,
@@ -436,6 +437,7 @@ fn isnumtype(ty *const Type) bool {
return ty->is(:Int) or ty->is(:Flo) or (ty->is(:Enum) and ty.u.Enum.lax);
}
extern fn typeof2(a *const Type, b *const Type) *const Type;
+extern fn types_to_llvm() void;
// env.cff
extern fn mkenv(parent *Env, alloc *Allocator) *Env;
@@ -459,4 +461,7 @@ extern static g_asmbackend Backend;
// llvm.cff
extern fn llvm_genfn(externp bool, name *const u8, f *Fn) void;
-extern fn llvm_init() void;
+extern fn llvm_addfn(*Decl) void;
+extern fn llvm_addtype(*const Type) void;
+extern fn llvm_init(*FILE) void;
+extern fn llvm_fini() void;