From f0fad0dca5ad89ff03ba3eaab7b477bb64be6e8d Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Sat, 2 Jul 2011 21:50:42 -0700 Subject: Add a function that determines whether the block is terminated --- 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 b671b2485c0..9c37ca4a87f 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -1405,6 +1405,10 @@ obj builder(BuilderRef B, @mutable bool terminated) { str::buf("")); } + fn is_terminated() -> bool { + ret *terminated; + } + drop { llvm::LLVMDisposeBuilder(B); } -- cgit 1.4.1-3-g733a5