Skip to content

Commit

Permalink
[rebase] Add SEH personality stubs (unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 12, 2015
1 parent 2fb70e2 commit e7d92d2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/libstd/rt/unwind/seh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use prelude::v1::*;

use any::Any;
use intrinsics;
use prelude::v1::*;
use libc::c_void;

pub unsafe fn panic(_data: Box<Any + Send + 'static>) -> ! {
intrinsics::abort();
Expand All @@ -19,3 +21,10 @@ pub unsafe fn panic(_data: Box<Any + Send + 'static>) -> ! {
pub unsafe fn cleanup(_ptr: *mut c_void) -> Box<Any + Send + 'static> {
intrinsics::abort();
}

#[lang = "eh_personality"]
#[no_mangle]
pub extern fn rust_eh_personality() {}

#[no_mangle]
pub extern fn rust_eh_personality_catch() {}

0 comments on commit e7d92d2

Please sign in to comment.