From: Bob Wilson Date: Wed, 2 Nov 2011 05:10:45 +0000 (+0000) Subject: Invoke the Darwin assembler with -g instead of --gdwarf2. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=591ff15d4a7ae25ea7ac3f00f04f203d3ccec0b7;p=clang Invoke the Darwin assembler with -g instead of --gdwarf2. The -g and --gdwarf2 options are currently synonyms to the Darwin assembler. But clang itself does not recognize --gdwarf2, so if we want to experiment with using clang, with its integrated assembler, to replace the default assembler, it is necessary to use -g. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143533 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 1a8c2e834c..4811b03979 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -3130,7 +3130,7 @@ void darwin::Assemble::ConstructJob(Compilation &C, const JobAction &JA, if (Args.hasArg(options::OPT_gstabs)) CmdArgs.push_back("--gstabs"); else if (Args.hasArg(options::OPT_g_Group)) - CmdArgs.push_back("--gdwarf2"); + CmdArgs.push_back("-g"); } // Derived from asm spec.