diff options
| author | Graydon Hoare <[email protected]> | 2010-10-04 15:55:12 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-10-04 15:55:12 -0700 |
| commit | 44e4b2d63aef1e6cb572acfa327ea2c3a36083e8 (patch) | |
| tree | d48f06f491e20d4f176c7e1435ba953ec549d72c /src/comp/util | |
| parent | Support refcount-drop and conditional free in rustc. (diff) | |
| download | rust-44e4b2d63aef1e6cb572acfa327ea2c3a36083e8.tar.xz rust-44e4b2d63aef1e6cb572acfa327ea2c3a36083e8.zip | |
Teach rustc about phi nodes, block relationships. Translate if- and block-expressions.
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/common.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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; |