[cfe-commits] r143533 - /cfe/trunk/lib/Driver/Tools.cpp

Bob Wilson bob.wilson at apple.com
Tue Nov 1 22:10:46 PDT 2011


Author: bwilson
Date: Wed Nov  2 00:10:45 2011
New Revision: 143533

URL: http://llvm.org/viewvc/llvm-project?rev=143533&view=rev
Log:
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.  <rdar://problem/10349486>

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=143533&r1=143532&r2=143533&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Nov  2 00:10:45 2011
@@ -3130,7 +3130,7 @@
     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.





More information about the cfe-commits mailing list