Teach rustc about phi nodes, block relationships. Translate if- and block-expressions.
This commit is contained in:
parent
a87e81b929
commit
44e4b2d63a
5 changed files with 325 additions and 113 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue