summaryrefslogtreecommitdiff
path: root/src/mir/mir.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/mir/mir.cpp
parent25bd608c36557b833b52d46a39f3d05ceffd7153 (diff)
downloadmrust-b859297f6ed678e004b841dcf2ae5a64c10301f8.tar.gz
MIR - Create a CallPath terminator
Diffstat (limited to 'src/mir/mir.cpp')
-rw-r--r--src/mir/mir.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mir/mir.cpp b/src/mir/mir.cpp
index 18c69a41..5b3a705d 100644
--- a/src/mir/mir.cpp
+++ b/src/mir/mir.cpp
@@ -154,11 +154,17 @@ namespace MIR {
os << j << " => bb" << e.targets[j] << ", ";
os << ")";
),
- (Call,
+ (CallValue,
os << "Call( " << e.ret_val << " = " << e.fcn_val << "( ";
for(const auto& arg : e.args)
os << arg << ", ";
os << "), bb" << e.ret_block << ", bb" << e.panic_block << ")";
+ ),
+ (CallPath,
+ os << "Call( " << e.ret_val << " = " << e.fcn_path << "( ";
+ for(const auto& arg : e.args)
+ os << arg << ", ";
+ os << "), bb" << e.ret_block << ", bb" << e.panic_block << ")";
)
)