about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJames Miller <bladeon@gmail.com>2013-04-24 18:26:44 +1200
committerJames Miller <bladeon@gmail.com>2013-04-24 18:27:56 +1200
commit286e571a634e9677fe897ff8fb46a7e33487b4c5 (patch)
tree230ab5c4e8e79d423434d921c65ef8566c0fd821
parent706096b31960143fb1eb957a882f170ae4a8b4e9 (diff)
downloadrust-286e571a634e9677fe897ff8fb46a7e33487b4c5.tar.gz
rust-286e571a634e9677fe897ff8fb46a7e33487b4c5.zip
Remove rust_unwind.h
Adds the required definitions in the correct place.
-rw-r--r--src/rt/rust_unwind.h40
-rw-r--r--src/rt/rust_upcall.cpp8
2 files changed, 7 insertions, 41 deletions
diff --git a/src/rt/rust_unwind.h b/src/rt/rust_unwind.h
deleted file mode 100644
index 0eb990a9c9b..00000000000
--- a/src/rt/rust_unwind.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// Unwinding stuff missing on some architectures (Mac OS X).
-
-#ifndef RUST_UNWIND_H
-#define RUST_UNWIND_H
-
-#ifdef __APPLE__
-#include <libunwind.h>
-
-typedef void _Unwind_Context;
-typedef int _Unwind_Reason_Code;
-
-#else
-
-#include <unwind.h>
-
-#endif
-
-#if (defined __APPLE__) || (defined __clang__)
-
-#ifndef __FreeBSD__
-
-typedef int _Unwind_Action;
-typedef void _Unwind_Exception;
-
-#endif
-
-#endif
-
-#endif
-
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index e524e6de859..59f06feee4b 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -19,10 +19,16 @@
 #include "rust_globals.h"
 #include "rust_task.h"
 #include "rust_sched_loop.h"
-#include "rust_unwind.h"
 #include "rust_upcall.h"
 #include "rust_util.h"
 
+//Unwinding ABI declarations.
+typedef int _Unwind_Reason_Code;
+typedef int _Unwind_Action;
+
+struct _Unwind_Context;
+struct _Unwind_Exception;
+
 #ifdef __GNUC__
 #define LOG_UPCALL_ENTRY(task)                            \
     LOG(task, upcall,                                     \