From 44e4b2d63aef1e6cb572acfa327ea2c3a36083e8 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 4 Oct 2010 15:55:12 -0700 Subject: Teach rustc about phi nodes, block relationships. Translate if- and block-expressions. --- src/comp/util/common.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/comp/util/common.rs') diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 7456a8c8..7b0ffd5b 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -4,6 +4,14 @@ import std._int; type pos = rec(uint line, uint col); type span = rec(str filename, pos lo, pos hi); +// FIXME: import std.util.option and use it here. +// import std.util.option; + +tag option[T] { + none; + some(T); +} + tag ty_mach { ty_i8; ty_i16; -- cgit v1.2.3