Rename the 'cretonne' crate to 'cretonne-codegen'.

This fixes the next part of #287.
This commit is contained in:
Dan Gohman
2018-04-17 08:48:02 -07:00
parent 7767186dd0
commit 24fa169e1f
254 changed files with 265 additions and 264 deletions

View File

@@ -2,10 +2,9 @@
//!
//! The `compile` test command runs each function through the full code generator pipeline
use cretonne;
use cretonne::binemit;
use cretonne::ir;
use cretonne::print_errors::pretty_error;
use cretonne_codegen;
use cretonne_codegen::{binemit, ir};
use cretonne_codegen::print_errors::pretty_error;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
@@ -39,7 +38,7 @@ impl SubTest for TestCompile {
let isa = context.isa.expect("compile needs an ISA");
// Create a compilation context, and drop in the function.
let mut comp_ctx = cretonne::Context::new();
let mut comp_ctx = cretonne_codegen::Context::new();
comp_ctx.func = func.into_owned();
let code_size = comp_ctx.compile(isa).map_err(|e| {