summaryrefslogtreecommitdiff
path: root/src/mir/mir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-20 09:26:13 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-20 09:26:13 +0800
commita6aae2e4413789e548a30fd9cb421cc2f6964b14 (patch)
treea6872cea76eaea7fe24e4c11ac5eb9b42482a3c4 /src/mir/mir.cpp
parentad7c16cd3664a79c09e00a76ae4e081aadd88493 (diff)
downloadmrust-a6aae2e4413789e548a30fd9cb421cc2f6964b14.tar.gz
MIR - Union support hacked up
Diffstat (limited to 'src/mir/mir.cpp')
-rw-r--r--src/mir/mir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir/mir.cpp b/src/mir/mir.cpp
index f65c7616..0517111a 100644
--- a/src/mir/mir.cpp
+++ b/src/mir/mir.cpp
@@ -114,6 +114,9 @@ namespace MIR {
(Array,
os << "Array(" << e.vals << ")";
),
+ (Variant,
+ os << "Variant(" << e.path << " #" << e.index << ", " << e.val << ")";
+ ),
(Struct,
os << "Struct(" << e.path << ", {" << e.vals << "})";
)