Update for llvm api change.

This commit is contained in:
Rafael Ávila de Espíndola 2011-07-25 11:11:24 -04:00 committed by Graydon Hoare
parent c96f62a29d
commit 4cee063976
4 changed files with 5 additions and 12 deletions

View file

@ -571,7 +571,6 @@ native "cdecl" mod llvm = "rustllvm" {
fn LLVMBuildInvoke(B: BuilderRef, Fn: ValueRef, Args: *ValueRef,
NumArgs: uint, Then: BasicBlockRef,
Catch: BasicBlockRef, Name: sbuf) -> ValueRef;
fn LLVMBuildUnwind(B: BuilderRef) -> ValueRef;
fn LLVMBuildUnreachable(B: BuilderRef) -> ValueRef;
/* Add a case to the switch instruction */
@ -949,12 +948,6 @@ obj builder(B: BuilderRef, terminated: @mutable bool,
Then, Catch, str::buf(""));
}
fn Unwind() -> ValueRef {
assert (!*terminated);
*terminated = true;
ret llvm::LLVMBuildUnwind(B);
}
fn Unreachable() -> ValueRef {
assert (!*terminated);
*terminated = true;