From e6738ed57d644572e7cbefa6d68a4118935a5f80 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 19 Sep 2015 18:16:36 +0800 Subject: Disable UFCS resolve (due to ordering issues), fix Self handling --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6515685a..e883b7ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,13 +45,12 @@ Rv CompilePhase(const char *name, Fcn f) { g_cur_phase = name; auto rv = f(); g_cur_phase = ""; + ::std::cout << name << ": DONE" << ::std::endl; return rv; } template void CompilePhaseV(const char *name, Fcn f) { - g_cur_phase = name; - f(); - g_cur_phase = ""; + CompilePhase(name, [&]() { f(); return 0; }); } /// main! -- cgit v1.2.3