Skip to content

[WIP] Filecheck yourself before you wreck yourself #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ matrix:
- brew install llvm
- sudo swift utils/make-pkgconfig.swift
script:
- swift build
- swift test
- os: linux
language: generic
sudo: required
Expand All @@ -25,7 +25,10 @@ matrix:
- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main"
- sudo apt-get update
- sudo apt-get install llvm-${LLVM_API_VERSION}
- sudo apt-get install llvm-${LLVM_API_VERSION} libc++1
# Move libC++ into place
- sudo cp /usr/lib/x86_64-linux-gnu/libc++.so.1.0 /usr/lib/
- sudo ln -sf /usr/lib/libc++.so.1.0 /usr/lib/libc++.so
# Work around pre-installed clang
- sudo rm -rf /usr/local/clang-*/bin/llvm-config
- ls -l /usr/bin/llvm-config*
Expand All @@ -39,4 +42,4 @@ matrix:
# Move the package config file into place
- sudo ./swift-3.0.2-RELEASE-ubuntu14.04/usr/bin/swift utils/make-pkgconfig.swift
script:
- swift build
- swift test
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Once you do that, you can start adding functions, global variables, and generati

```swift
let main = builder.addFunction(name: "main",
type: FunctionType(argTypes: [],
returnType: VoidType())
let entry = function.appendBasicBlock(named: "entry")
type: FunctionType(argTypes: [],
returnType: VoidType()))
let entry = main.appendBasicBlock(named: "entry")
builder.positionAtEnd(of: entry)

builder.buildRetVoid()
Expand Down
Loading