parent
4bced5e5f2
commit
5e4637b61f
3 changed files with 29 additions and 0 deletions
|
|
@ -545,6 +545,22 @@ fn Trap(cx: &@block_ctxt) -> ValueRef {
|
|||
});
|
||||
}
|
||||
|
||||
fn LandingPad(cx: &@block_ctxt, Ty: TypeRef, PersFn: ValueRef,
|
||||
NumClauses: uint) -> ValueRef {
|
||||
ret str::as_buf("",
|
||||
{|buf|
|
||||
llvm::LLVMBuildLandingPad(B(cx),
|
||||
Ty,
|
||||
PersFn,
|
||||
NumClauses,
|
||||
buf)
|
||||
});
|
||||
}
|
||||
|
||||
fn SetCleanup(_cx: &@block_ctxt, LandingPad: ValueRef) {
|
||||
llvm::LLVMSetCleanup(LandingPad, lib::llvm::True);
|
||||
}
|
||||
|
||||
//
|
||||
// Local Variables:
|
||||
// mode: rust
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue