mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Do not use extern crate
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
extern crate kecc;
|
|
||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
|
|||||||
11
bin/kecc.rs
11
bin/kecc.rs
@@ -1,16 +1,13 @@
|
|||||||
|
use clap::Parser;
|
||||||
|
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
use clap::Parser;
|
|
||||||
|
|
||||||
use lang_c::ast::TranslationUnit;
|
use lang_c::ast::TranslationUnit;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate kecc;
|
|
||||||
|
|
||||||
use kecc::{
|
use kecc::{
|
||||||
ir, write, Asmgen, Deadcode, Gvn, IrParse, Irgen, Mem2reg, Optimize, Parse, SimplifyCfg,
|
ir, ok_or_exit, write, Asmgen, Deadcode, Gvn, IrParse, Irgen, Mem2reg, Optimize, Parse,
|
||||||
Translate, O1,
|
SimplifyCfg, Translate, O1,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
|
|||||||
Reference in New Issue
Block a user