r175814 - Don't pass -split-dwarf= to the backend unless we're on linux for
Eric Christopher
echristo at gmail.com
Thu Feb 21 14:35:05 PST 2013
Author: echristo
Date: Thu Feb 21 16:35:05 2013
New Revision: 175814
URL: http://llvm.org/viewvc/llvm-project?rev=175814&view=rev
Log:
Don't pass -split-dwarf= to the backend unless we're on linux for
now.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/split-debug.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=175814&r1=175813&r2=175814&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Feb 21 16:35:05 2013
@@ -2311,7 +2311,9 @@ void Clang::ConstructJob(Compilation &C,
// -gsplit-dwarf should turn on -g and enable the backend dwarf
// splitting and extraction.
- if (Args.hasArg(options::OPT_gsplit_dwarf)) {
+ // FIXME: Currently only works on Linux.
+ if (getToolChain().getTriple().getOS() == llvm::Triple::Linux &&
+ Args.hasArg(options::OPT_gsplit_dwarf)) {
CmdArgs.push_back("-g");
CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-split-dwarf=Enable");
Modified: cfe/trunk/test/Driver/split-debug.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/split-debug.c?rev=175814&r1=175813&r2=175814&view=diff
==============================================================================
--- cfe/trunk/test/Driver/split-debug.c (original)
+++ cfe/trunk/test/Driver/split-debug.c Thu Feb 21 16:35:05 2013
@@ -8,3 +8,7 @@
// CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o"
+// RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
+//
+// CHECK-NO-ACTIONS-NOT: -split-dwarf
More information about the cfe-commits
mailing list