about summary refs log tree commit diff
path: root/src/comp/lib
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-07-02 21:50:42 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-07-02 22:02:08 -0700
commitf0fad0dca5ad89ff03ba3eaab7b477bb64be6e8d (patch)
tree55bc09f1a5b0fc5bd6113f118378597b964f159b /src/comp/lib
parent434b199362b8763c7d5e0548e86aeb8dae91a540 (diff)
downloadrust-f0fad0dca5ad89ff03ba3eaab7b477bb64be6e8d.tar.gz
rust-f0fad0dca5ad89ff03ba3eaab7b477bb64be6e8d.zip
Add a function that determines whether the block is terminated
Diffstat (limited to 'src/comp/lib')
-rw-r--r--src/comp/lib/llvm.rs4
1 files changed, 4 insertions, 0 deletions
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);
     }