Register stuff cleanup
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -178,7 +178,7 @@ int main(int argument_count, char **arguments){
|
||||
test_intern_table();
|
||||
|
||||
emit_line_directives = true;
|
||||
String program_name = "main.kl"_s;
|
||||
String program_name = "vm.kl"_s;
|
||||
if(argument_count > 1){
|
||||
program_name = string_from_cstring(arguments[1]);
|
||||
}
|
||||
@@ -204,13 +204,12 @@ int main(int argument_count, char **arguments){
|
||||
Ast_Module *module = add_module(0, pctx->intern(program_name));
|
||||
parse_all_modules();
|
||||
assert(module);
|
||||
// resolve_everything_in_module(pctx->language_base_module);
|
||||
resolve_everything_in_module(module);
|
||||
|
||||
|
||||
arena_clear(&pctx->stage_arena);
|
||||
// compile_to_bc();
|
||||
// __debugbreak();
|
||||
compile_to_bc();
|
||||
__debugbreak();
|
||||
String result = get_compilation_result();
|
||||
assert(os_write_file("program.c"_s, result));
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user