diff options
| author | Graydon Hoare <[email protected]> | 2010-09-22 17:05:38 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-22 17:05:38 -0700 |
| commit | 04a55df54bb389abf95c0639bd6246f06cd6c38f (patch) | |
| tree | 1e8b8630fbf875195ec135a19f0aa87ecc104933 /src/comp/lib | |
| parent | Add 'items' iter to hashmap. (diff) | |
| download | rust-04a55df54bb389abf95c0639bd6246f06cd6c38f.tar.xz rust-04a55df54bb389abf95c0639bd6246f06cd6c38f.zip | |
Flesh out rustc.me.trans to construct functions, basic blocks and builders off the AST.
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 9a31a193..f0c4428c 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -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; |