From a3dee93989b9fdd99b8a22a2da7f72bcd2ba50c2 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 25 Sep 2021 18:08:26 +0200 Subject: ch4: update README + lljit rustdocs --- src/llvm/lljit.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/llvm/lljit.rs b/src/llvm/lljit.rs index 88c7059..a68e9fa 100644 --- a/src/llvm/lljit.rs +++ b/src/llvm/lljit.rs @@ -19,6 +19,7 @@ pub trait JitFn {} impl JitFn for unsafe extern "C" fn() -> f64 {} +/// Wrapper for a LLVM [LLJIT](https://www.llvm.org/docs/ORCv2.html#lljit-and-lllazyjit). pub struct LLJit { jit: LLVMOrcLLJITRef, dylib: LLVMOrcJITDylibRef, @@ -125,8 +126,10 @@ impl LLJit { } } -/// A resource handle to code added to an [`LLJit`] instance. When a `ResourceTracker` handle is -/// dropped, the code corresponding to the handle will be removed from the JIT. +/// A resource handle for code added to an [`LLJit`] instance. +/// +/// When a `ResourceTracker` handle is dropped, the code corresponding to the handle will be +/// removed from the JIT. pub struct ResourceTracker<'jit>(LLVMOrcResourceTrackerRef, PhantomData<&'jit ()>); impl<'jit> ResourceTracker<'jit> { -- cgit v1.2.3