Driver: Translate -fverbose-asm for LLVM backend.

- <rdar://problem/6715707> driver should translate -fverbose-asm into
   -asm-verbose

llvm-svn: 67634
This commit is contained in:
Daniel Dunbar 2009-03-24 17:59:06 +00:00
parent 90a3707225
commit 038f5d6ef0
3 changed files with 4 additions and 2 deletions

View File

@ -413,6 +413,7 @@ OPTION("-fterminated-vtables", fterminated_vtables, Flag, f_Group, INVALID, "",
OPTION("-ftime-report", ftime_report, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-ftraditional", ftraditional, Flag, f_Group, INVALID, "", 0)
OPTION("-funwind-tables", funwind_tables, Flag, f_Group, INVALID, "", 0)
OPTION("-fverbose-asm", fverbose_asm, Flag, f_Group, INVALID, "", 0)
OPTION("-fwritable-strings", fwritable_strings, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fzero-initialized-in-bss", fzero_initialized_in_bss, Flag, f_Group, INVALID, "", 0)
OPTION("-f", f, Joined, f_Group, INVALID, "", 0)

View File

@ -120,7 +120,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
options::OPT_fno_zero_initialized_in_bss,
true))
CmdArgs.push_back("--nozero-initialized-in-bss");
if (Args.hasArg(options::OPT_dA))
if (Args.hasArg(options::OPT_dA) || Args.hasArg(options::OPT_fverbose_asm))
CmdArgs.push_back("--asm-verbose");
if (Args.hasArg(options::OPT_fdebug_pass_structure))
CmdArgs.push_back("--debug-pass=Structure");

View File

@ -1,4 +1,4 @@
// RUN: clang -ccc-host-triple i386-unknown-unknown -### -S -O0 -Os %s -o %t.s 2> %t.log
// RUN: clang -ccc-host-triple i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm 2> %t.log
// RUN: grep '"-S"' %t.log &&
// RUN: grep '"-disable-free"' %t.log &&
// RUN: grep '"--relocation-model" "static"' %t.log &&
@ -8,4 +8,5 @@
// RUN: grep '"-Os"' %t.log &&
// RUN: grep '"-arch" "i386"' %t.log &&
// RUN: grep '"-o" .*clang-translation\.c\.out\.tmp\.s' %t.log &&
// RUN: grep '"--asm-verbose"' %t.log &&
// RUN: true