Flesh out rustc.me.trans to construct functions, basic blocks and builders off the AST.

This commit is contained in:
Graydon Hoare
2010-09-22 17:05:38 -07:00
parent 4d17283371
commit 04a55df54b
3 changed files with 63 additions and 3 deletions

View File

@@ -25,6 +25,10 @@ type LongLong = i64;
type Long = i32;
type Bool = int;
fn True() -> Bool { ret 1; }
fn False() -> Bool { ret 0; }
native mod llvm = llvm_lib {
type ModuleRef;