From 04a55df54bb389abf95c0639bd6246f06cd6c38f Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 22 Sep 2010 17:05:38 -0700 Subject: Flesh out rustc.me.trans to construct functions, basic blocks and builders off the AST. --- src/comp/lib/llvm.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/comp/lib') 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; -- cgit v1.2.3