diff options
| author | Lindsey Kuper <lkuper@mozilla.com> | 2011-05-27 17:58:22 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lkuper@mozilla.com> | 2011-05-27 18:20:43 -0700 |
| commit | dc9d5e168977b9f3e2595b2c33aaf4c90f09ae81 (patch) | |
| tree | 5d68f17a708dbd329937bb36b6e0bbf761ede7e9 /src/comp/lib/llvm.rs | |
| parent | b6e0c5829f5bb87b9a3f0f74b1d98f6ea4cc8cef (diff) | |
| download | rust-dc9d5e168977b9f3e2595b2c33aaf4c90f09ae81.tar.gz rust-dc9d5e168977b9f3e2595b2c33aaf4c90f09ae81.zip | |
Lots of comments, and some more descriptive names.
Diffstat (limited to 'src/comp/lib/llvm.rs')
| -rw-r--r-- | src/comp/lib/llvm.rs | 8 |
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) { |
