diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-11 12:17:17 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-11 12:17:17 +0800 |
commit | 5f22f9f6d48411d56d9999d9a7d2c64b1aa31e73 (patch) | |
tree | a5513e62de44aa6f0a3ae37fd0ebfa0a50f54a0e /src/trans/monomorphise.cpp | |
parent | b556656fc9141c2d157b8da8fc95adaa16683e40 (diff) | |
download | mrust-5f22f9f6d48411d56d9999d9a7d2c64b1aa31e73.tar.gz |
Trans - Intrinsics (partially complete)
Diffstat (limited to 'src/trans/monomorphise.cpp')
-rw-r--r-- | src/trans/monomorphise.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trans/monomorphise.cpp b/src/trans/monomorphise.cpp index 24bf34d1..d129eae9 100644 --- a/src/trans/monomorphise.cpp +++ b/src/trans/monomorphise.cpp @@ -91,6 +91,7 @@ namespace { if( stmt.is_Drop() ) { const auto& e = stmt.as_Drop(); + DEBUG("- DROP " << e.slot); statements.push_back( ::MIR::Statement::make_Drop({ e.kind, monomorph_LValue(crate, params, e.slot) @@ -99,6 +100,7 @@ namespace { else { const auto& e = stmt.as_Assign(); + DEBUG("- " << e.dst << " = " << e.src); ::MIR::RValue rval; TU_MATCHA( (e.src), (se), @@ -221,6 +223,7 @@ namespace { ::MIR::Terminator terminator; + DEBUG("> " << block.terminator); TU_MATCHA( (block.terminator), (e), (Incomplete, //BUG(sp, "Incomplete block"); @@ -261,7 +264,7 @@ namespace { return params.monomorph(crate, e); ), (Intrinsic, - return e; + return ::MIR::CallTarget::make_Intrinsic({ e.name, params.monomorph(crate, e.params) }); ) ) throw ""; |