Update dependencies. Use Clap 3.0.0-beta2 instead of StructOpt

This commit is contained in:
Syrus Akbary
2021-03-03 21:47:49 -08:00
parent 1ee7b4a07f
commit 392f50a1af
21 changed files with 301 additions and 330 deletions

View File

@@ -1,17 +1,17 @@
#[derive(Debug, StructOpt, Clone)]
#[derive(Debug, Clap, Clone)]
/// LLVM backend flags.
pub struct LLVMCLIOptions {
/// Emit LLVM IR before optimization pipeline.
#[structopt(long = "llvm-pre-opt-ir", parse(from_os_str))]
#[clap(long = "llvm-pre-opt-ir", parse(from_os_str))]
pre_opt_ir: Option<PathBuf>,
/// Emit LLVM IR after optimization pipeline.
#[structopt(long = "llvm-post-opt-ir", parse(from_os_str))]
#[clap(long = "llvm-post-opt-ir", parse(from_os_str))]
post_opt_ir: Option<PathBuf>,
/// Emit LLVM generated native code object file.
#[structopt(long = "llvm-object-file", parse(from_os_str))]
#[clap(long = "llvm-object-file", parse(from_os_str))]
obj_file: Option<PathBuf>,
}