Update for llvm api change.
This commit is contained in:
parent
c96f62a29d
commit
4cee063976
4 changed files with 5 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue