diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-10 16:50:23 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-10 16:50:23 +0200 |
| commit | 3000a3f63d9bb96614a1d8ee9dc4d3005af0489e (patch) | |
| tree | 750b9b74f8f5d9638c26aa74dad0c5766dbda17e /example | |
| parent | bbcffc23cafb8b4965c54860156fa9a0b0a16de1 (diff) | |
| download | rust-3000a3f63d9bb96614a1d8ee9dc4d3005af0489e.tar.gz rust-3000a3f63d9bb96614a1d8ee9dc4d3005af0489e.zip | |
[WIP] Implement dylib loading for the JIT
Diffstat (limited to 'example')
| -rw-r--r-- | example/mini_core.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs index f57f1ff635d..84664eb4139 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -369,9 +369,6 @@ pub trait FnMut<Args>: FnOnce<Args> { } #[lang = "panic"] -// Make it available to jited mini_core_hello_world -// FIXME remove next line when jit supports linking rlibs -#[inline(always)] pub fn panic(&(_msg, _file, _line, _col): &(&'static str, &'static str, u32, u32)) -> ! { unsafe { libc::puts("Panicking\0" as *const str as *const u8); @@ -419,15 +416,11 @@ impl<T> Deref for Box<T> { } #[lang = "exchange_malloc"] -// Make it available to jited mini_core_hello_world -// FIXME remove next line when jit supports linking rlibs -#[inline(always)] unsafe fn allocate(size: usize, _align: usize) -> *mut u8 { libc::malloc(size) } #[lang = "box_free"] -#[inline(always)] unsafe fn box_free<T: ?Sized>(ptr: *mut T) { libc::free(ptr as *mut u8); } |
