Revert update to clap-beta back to structopt

Clap-beta hasn't had a release in a while and likely won't for a while longer.
We're affected by bugs that have been fixed and not released. We shouldn't be
depending on beta software anyways for this.
This commit is contained in:
Mark McCaskey
2021-06-03 07:49:32 -07:00
parent fbc56f7497
commit 6382d99ac7
16 changed files with 139 additions and 162 deletions

View File

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