Rename the 'cretonne' crate to 'cretonne-codegen'.
This fixes the next part of #287.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
//!
|
||||
//! The resulting function is sent to `filecheck`.
|
||||
|
||||
use cretonne;
|
||||
use cretonne::ir::Function;
|
||||
use cretonne::print_errors::pretty_error;
|
||||
use cretonne_codegen;
|
||||
use cretonne_codegen::ir::Function;
|
||||
use cretonne_codegen::print_errors::pretty_error;
|
||||
use cretonne_reader::TestCommand;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::Write;
|
||||
@@ -32,7 +32,7 @@ impl SubTest for TestPostopt {
|
||||
|
||||
fn run(&self, func: Cow<Function>, context: &Context) -> Result<()> {
|
||||
// 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 isa = context.isa.expect("postopt needs an ISA");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user