Fixes #404: Use log.rs and a file-per-thread logger instead of the dbg! macro;
This commit is contained in:
committed by
Dan Gohman
parent
60c2cad06e
commit
a044f58cea
@@ -13,6 +13,7 @@ cranelift-codegen = { path = "../codegen", version = "0.18.1", default-features
|
||||
cranelift-entity = { path = "../entity", version = "0.18.1", default-features = false }
|
||||
hashmap_core = { version = "0.1.9", optional = true }
|
||||
failure = "0.1.1"
|
||||
log = { version = "0.4.3", default-features = false, features = ["release_max_level_warn"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -20,12 +20,13 @@
|
||||
#[cfg_attr(test, macro_use)]
|
||||
extern crate alloc;
|
||||
|
||||
#[macro_use]
|
||||
extern crate cranelift_codegen;
|
||||
#[macro_use]
|
||||
extern crate cranelift_entity;
|
||||
#[macro_use]
|
||||
extern crate failure;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
mod backend;
|
||||
mod data_context;
|
||||
|
||||
@@ -467,7 +467,7 @@ where
|
||||
pub fn define_function(&mut self, func: FuncId, ctx: &mut Context) -> ModuleResult<()> {
|
||||
let compiled = {
|
||||
let code_size = ctx.compile(self.backend.isa()).map_err(|e| {
|
||||
dbg!(
|
||||
info!(
|
||||
"defining function {}: {}",
|
||||
func,
|
||||
ctx.func.display(self.backend.isa())
|
||||
|
||||
Reference in New Issue
Block a user