Skip to content

Commit 3440698

Browse files
committed
Add OS X target to travis and detail some documentation.
1 parent 0ae8907 commit 3440698

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: rust
22
rust: beta
33
sudo: required
4+
os:
5+
- linux
6+
- osx
47
after_success: |
58
[ $TRAVIS_BRANCH = master ] &&
69
[ $TRAVIS_PULL_REQUEST = false ] &&
@@ -16,7 +19,7 @@ before_install:
1619
install:
1720
- sudo apt-get update -qq
1821
- sudo apt-get install -qq llvm-3.7 libllvm3.7 libllvm3.7-dbg cmake libedit-dev
19-
- sudo ln -s /usr/bin/llvm-config-* /usr/bin/llvm-config
22+
- sudo ln -s /usr/bin/llvm-config-3.7 /usr/local/bin/llvm-config
2023
script:
2124
- cargo build --verbose
2225
- cargo test --verbose

src/value.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub enum Predicate {
6363
LessThan,
6464
LessThanOrEqual
6565
}
66-
/// A function argument.
66+
/// An argument that is passed to a function.
6767
pub struct Arg;
6868
native_ref!(&Arg = LLVMValueRef);
6969
impl Deref for Arg {
@@ -111,7 +111,7 @@ impl Arg {
111111
}
112112
}
113113

114-
/// A global value (eg: Function, Alias, Global variable)
114+
/// A value with global scope (eg: Function, Alias, Global variable)
115115
pub struct GlobalValue;
116116
native_ref!(&GlobalValue = LLVMValueRef);
117117
impl Deref for GlobalValue {
@@ -197,7 +197,7 @@ impl GlobalVariable {
197197
}
198198
}
199199

200-
/// An alias to another global
200+
/// An alias to another global value.
201201
pub struct Alias;
202202
native_ref!(&Alias = LLVMValueRef);
203203
impl Deref for Alias {
@@ -216,7 +216,10 @@ impl CastFrom for Alias {
216216
}
217217
}
218218

219-
/// A function that can be called and contains blocks.
219+
/// A function is a kind of value that can be called and contains blocks of code.
220+
///
221+
/// To get the value of each argument to a function, you can use the index operator.
222+
/// For example, `&func[0]` is the value that represents the first argument to the function.
220223
pub struct Function;
221224
native_ref!(&Function = LLVMValueRef);
222225
impl Deref for Function {
@@ -319,7 +322,7 @@ impl GetContext for Function {
319322
self.get_type().get_context()
320323
}
321324
}
322-
/// A way of indicating to LLVM how you want arguments / functions to be handled.
325+
/// These indicate how you want arguments / functions to be handled.
323326
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
324327
#[repr(C)]
325328
pub enum Attribute {

0 commit comments

Comments
 (0)