about summary refs log tree commit diff
path: root/src/comp/lib
diff options
context:
space:
mode:
authorLindsey Kuper <lkuper@mozilla.com>2011-05-27 17:58:22 -0700
committerLindsey Kuper <lkuper@mozilla.com>2011-05-27 18:20:43 -0700
commitdc9d5e168977b9f3e2595b2c33aaf4c90f09ae81 (patch)
tree5d68f17a708dbd329937bb36b6e0bbf761ede7e9 /src/comp/lib
parentb6e0c5829f5bb87b9a3f0f74b1d98f6ea4cc8cef (diff)
downloadrust-dc9d5e168977b9f3e2595b2c33aaf4c90f09ae81.tar.gz
rust-dc9d5e168977b9f3e2595b2c33aaf4c90f09ae81.zip
Lots of comments, and some more descriptive names.
Diffstat (limited to 'src/comp/lib')
-rw-r--r--src/comp/lib/llvm.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 35a1d990ab4..0de35b9f006 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -886,7 +886,13 @@ native mod llvm = llvm_lib {
 native mod rustllvm = llvm_lib {
 }
 
-/* Slightly more terse object-interface to LLVM's 'builder' functions. */
+/* Slightly more terse object-interface to LLVM's 'builder' functions. For the
+ * most part, build.Foo() wraps LLVMBuildFoo(), threading the correct
+ * BuilderRef B into place.  A BuilderRef is a cursor-like LLVM value that
+ * inserts instructions for a particular BasicBlockRef at a particular
+ * position; for our purposes, it always inserts at the end of the basic block
+ * it's attached to.  
+ */
 
 // FIXME: Do we want to support mutable object fields?
 obj builder(BuilderRef B, @mutable bool terminated) {