From 0d6651f813cad3c42136f2a3f41fc624cbbcdeae Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 26 Aug 2022 16:03:54 +0200 Subject: [PATCH] Change -m* arguments to -* --- src/Arguments.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Arguments.cpp b/src/Arguments.cpp index ec4a3a0..b648d0e 100644 --- a/src/Arguments.cpp +++ b/src/Arguments.cpp @@ -30,33 +30,33 @@ void Arguments::parse(int argc, char** argv) command_line.add(input_Argument); CreateValueArgument(output, "o", "output", "Output file.", "output.o"); - CreateValueArgument(march, "", "march", "Architecture to compile for.", "native"); - CreateValueArgument(mcpu, "", "mcpu", "CPU to compile for.", "generic"); - CreateValueArgument(msystem, "", "msystem", "Operating System to compile for.", "native"); + CreateValueArgument(arch, "", "arch", "Architecture to compile for.", "native"); + CreateValueArgument(cpu, "", "cpu", "CPU to compile for.", "generic"); + CreateValueArgument(system, "", "system", "Operating System to compile for.", "native"); CreateValueArgument(entry, "e", "entry", "Name of entry function.", "main"); CreateFlagArgument(emit_llvm, "", "emit-llvm", "Emit LLVM IR instead of an object file."); CreateFlagArgument(omit_entry, "", "omit-entry", "Do not check for an entry point."); #ifndef NO_BENCHMARKING - CreateFlagArgument(mprofile, "", "mprofile", "Show execution times for functions."); + CreateFlagArgument(profile, "", "profile", "Show execution times for functions."); #endif command_line.parse(argc, argv); SaveValueArgument(output); SaveValueArgument(input); - SaveValueArgument(march); - SaveValueArgument(msystem); - SaveValueArgument(mcpu); + SaveValueArgument(arch); + SaveValueArgument(system); + SaveValueArgument(cpu); SaveValueArgument(entry); SaveFlagArgument(emit_llvm); SaveFlagArgument(omit_entry); - setTriple(values["march"], values["msystem"]); + setTriple(values["arch"], values["system"]); #ifndef NO_BENCHMARKING - SaveFlagArgument(mprofile); - if (flags["mprofile"]) __benchmark_impl::enable(); + SaveFlagArgument(profile); + if (flags["profile"]) __benchmark_impl::enable(); #endif } catch (TCLAP::ArgException& e)