aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-11-02 05:10:45 +0000
committerBob Wilson <bob.wilson@apple.com>2011-11-02 05:10:45 +0000
commit591ff15d4a7ae25ea7ac3f00f04f203d3ccec0b7 (patch)
treec3b753cafbf16143b3e2cd6fff1fcdbcd2070ea3 /lib/Driver/Tools.cpp
parentd4e85faaf36c39a34a622e54370535854c52d9e9 (diff)
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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 1 insertions, 1 deletions
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.