diff options
author | John Hodge <tpg@ucc.asn.au> | 2018-09-22 16:25:01 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2018-09-22 16:25:01 +0800 |
commit | 5c63b46f8dca1d65c1906c77169555229ab07412 (patch) | |
tree | 5580be06c7a535c3b46bdc3ae9f766697aa1158b /src/mir/dump.cpp | |
parent | dd4e3c887fa2eef2db6fa2795d4283636a1cc26e (diff) | |
download | mrust-5c63b46f8dca1d65c1906c77169555229ab07412.tar.gz |
All - Generate MIR for constant evaluation (has too many const_cast calls, but it's less ugly)
- Also includes some MIR optimisation changes to reduce some compile times (hopefully)
- Removed duplicated MIR consteval and now-unused HIR consteval
Diffstat (limited to 'src/mir/dump.cpp')
-rw-r--r-- | src/mir/dump.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir/dump.cpp b/src/mir/dump.cpp index c390f5b6..90b81d5d 100644 --- a/src/mir/dump.cpp +++ b/src/mir/dump.cpp @@ -515,7 +515,7 @@ namespace { { m_os << indent() << "{\n"; inc_indent(); - dump_mir(m_os, m_indent_level, *item.m_code.m_mir); + dump_mir(m_os, m_indent_level, item.m_code.get_mir_or_error(Span())); dec_indent(); m_os << indent() << "}\n"; } @@ -538,7 +538,7 @@ namespace { inc_indent(); m_os << " = {\n"; inc_indent(); - dump_mir(m_os, m_indent_level, *item.m_value.m_mir); + dump_mir(m_os, m_indent_level, item.m_value.get_mir_or_error(Span())); dec_indent(); m_os << indent() << "} /* = " << item.m_value_res << "*/;\n"; dec_indent(); @@ -562,7 +562,7 @@ namespace { inc_indent(); m_os << " = {\n"; inc_indent(); - dump_mir(m_os, m_indent_level, *item.m_value.m_mir); + dump_mir(m_os, m_indent_level, item.m_value.get_mir_or_error(Span())); dec_indent(); m_os << indent() << "} /* = " << item.m_value_res << "*/;\n"; dec_indent(); |