From f0fad0dca5ad89ff03ba3eaab7b477bb64be6e8d Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Sat, 2 Jul 2011 21:50:42 -0700 Subject: [PATCH] Add a function that determines whether the block is terminated --- src/comp/lib/llvm.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index b671b2485c00..9c37ca4a87f3 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); }