Added Debug to public structs. Close #173

This commit is contained in:
Syrus
2020-07-21 20:38:32 -07:00
parent e1838ff59b
commit 1293df8dd6
11 changed files with 123 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ use inkwell::targets::{
};
use inkwell::OptimizationLevel;
use itertools::Itertools;
use std::fmt::Debug;
use std::sync::Arc;
use target_lexicon::Architecture;
use wasm_common::{FunctionType, LocalFunctionIndex};
@@ -28,7 +29,7 @@ pub enum CompiledFunctionKind {
}
/// Callbacks to the different LLVM compilation phases.
pub trait LLVMCallbacks: Send + Sync {
pub trait LLVMCallbacks: Debug + Send + Sync {
fn preopt_ir(&self, function: &CompiledFunctionKind, module: &InkwellModule);
fn postopt_ir(&self, function: &CompiledFunctionKind, module: &InkwellModule);
fn obj_memory_buffer(
@@ -38,7 +39,7 @@ pub trait LLVMCallbacks: Send + Sync {
);
}
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct LLVM {
pub(crate) enable_nan_canonicalization: bool,
pub(crate) enable_verifier: bool,