diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-11-02 05:10:45 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-11-02 05:10:45 +0000 |
commit | 126c491319fe74bc2b3e18ce5ac036580cac2ffb (patch) | |
tree | 6d13c6087f94330e26f991a4de99222faa222a9d /clang/lib/Driver/Tools.cpp | |
parent | c5d72c103b0216eb5b16d50baa3c1dcbc222f641 (diff) | |
download | bcm5719-llvm-126c491319fe74bc2b3e18ce5ac036580cac2ffb.tar.gz bcm5719-llvm-126c491319fe74bc2b3e18ce5ac036580cac2ffb.zip |
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>
llvm-svn: 143533
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1a8c2e834cf..4811b03979f 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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. |