Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions codon/compiler/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ Compiler::parse(bool isCode, const std::string &file, const std::string &code,

cache->fs->set_module0(file);

LOG_TIME("[T] parse = {:.1f}", totalPeg);
Timer t2("typecheck");
t2.logged = true;
auto typechecked = ast::TypecheckVisitor::apply(
cache.get(), codeStmt, abspath, defines, getEarlyDefines(), (testFlags > 1));
LOG_TIME("[T] parse = {:.1f}", totalPeg);
LOG_TIME("[T] typecheck = {:.1f}", t2.elapsed() - totalPeg);
t2.log();

if (codon::getLogger().flags & codon::Logger::FLAG_USER) {
auto fo = fopen("_dump_typecheck.sexp", "w");
Expand Down