Do not use extern crate

This commit is contained in:
Minseong Jang
2022-01-20 18:28:46 +09:00
parent 7b1cdf9da3
commit 6e1365c242
2 changed files with 4 additions and 9 deletions

View File

@@ -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)]

View File

@@ -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)]