summaryrefslogtreecommitdiff
path: root/src/mir/dump.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-24 11:46:23 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-24 11:46:23 +0800
commitfa75e45e730c4c793dd9c1f10ba8c0a6afeab7e8 (patch)
tree851605115c2e168e9ff77551caa9b6c3f1978a4a /src/mir/dump.cpp
parent22865bc4d62d81171906122c6fd47e6826d2dfa8 (diff)
downloadmrust-fa75e45e730c4c793dd9c1f10ba8c0a6afeab7e8.tar.gz
MIR Pointer - Fix missing move constructors
Diffstat (limited to 'src/mir/dump.cpp')
-rw-r--r--src/mir/dump.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir/dump.cpp b/src/mir/dump.cpp
index 0023d2b6..fe1e16f1 100644
--- a/src/mir/dump.cpp
+++ b/src/mir/dump.cpp
@@ -150,6 +150,8 @@ namespace {
for(unsigned int i = 0; i < fcn.blocks.size(); i ++)
{
const auto& block = fcn.blocks[i];
+ DEBUG("BB" << i);
+
m_os << indent() << "bb" << i << ": {\n";
inc_indent();
for(const auto& stmt : block.statements)
@@ -158,9 +160,11 @@ namespace {
TU_MATCHA( (stmt), (e),
(Assign,
+ DEBUG("- Assign " << e.dst << " = " << e.src);
m_os << FMT_M(e.dst) << " = " << FMT_M(e.src) << ";\n";
),
(Drop,
+ DEBUG("- DROP " << e.slot);
m_os << "drop(" << FMT_M(e.slot) << ");\n";
)
)