diff options
author | John Hodge <tpg@mutabah.net> | 2015-09-19 18:16:36 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-09-19 18:16:36 +0800 |
commit | e6738ed57d644572e7cbefa6d68a4118935a5f80 (patch) | |
tree | a38b823d4b3771b045239a2f811eb63824a1032c /src/main.cpp | |
parent | 03e211d6eeb3f8f3c6f0b22f77c2074e81443952 (diff) | |
download | mrust-e6738ed57d644572e7cbefa6d68a4118935a5f80.tar.gz |
Disable UFCS resolve (due to ordering issues), fix Self handling
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 <typename Fcn>
void CompilePhaseV(const char *name, Fcn f) {
- g_cur_phase = name;
- f();
- g_cur_phase = "";
+ CompilePhase<int>(name, [&]() { f(); return 0; });
}
/// main!
|