[ir_main]: print default optimization level in help message

At first, I had thought optimization is disabled without -O option, in
fact, the default level is 2 and let's make it clear in --help message.

Signed-off-by: Tony Su <tao.su@intel.com>
This commit is contained in:
Tony Su 2023-05-09 09:23:36 +08:00
parent 007856ffd6
commit 42882d18f1

View File

@ -18,7 +18,7 @@ static void help(const char *cmd)
printf(
"Usage: %s [options] input-file...\n"
"Options:\n"
" -O[012] - optimiztion level\n"
" -O[012] - optimiztion level (default: 2)\n"
" -S - dump final target assembler code\n"
#if defined(IR_TARGET_X86) || defined(IR_TARGET_X64)
" -mavx - use AVX instruction set\n"