summaryrefslogtreecommitdiff
path: root/src/hir/serialise.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-03 16:15:19 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-03 16:15:19 +0800
commitb859297f6ed678e004b841dcf2ae5a64c10301f8 (patch)
treee640f388c2c641cf00ea1821ee9973aa9f057a42 /src/hir/serialise.cpp
parent25bd608c36557b833b52d46a39f3d05ceffd7153 (diff)
downloadmrust-b859297f6ed678e004b841dcf2ae5a64c10301f8.tar.gz
MIR - Create a CallPath terminator
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r--src/hir/serialise.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp
index d890aed6..a1b8924a 100644
--- a/src/hir/serialise.cpp
+++ b/src/hir/serialise.cpp
@@ -483,12 +483,19 @@ namespace {
for(auto t : e.targets)
m_out.write_count(t);
),
- (Call,
+ (CallValue,
m_out.write_count(e.ret_block);
m_out.write_count(e.panic_block);
serialise(e.ret_val);
serialise(e.fcn_val);
serialise_vec(e.args);
+ ),
+ (CallPath,
+ m_out.write_count(e.ret_block);
+ m_out.write_count(e.panic_block);
+ serialise(e.ret_val);
+ serialise_path(e.fcn_path);
+ serialise_vec(e.args);
)
)
}