aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-10-04 01:01:30 +0000
committerChad Rosier <mcrosier@apple.com>2011-10-04 01:01:30 +0000
commit968b7a71c88bcd157f7d271517d7ceb266fed63a (patch)
treea03374416f4153af838fb964bd3d51d8357d6358 /lib/Driver/Tools.cpp
parent0ced799878d1beb8f0fa1cc31fa6d2e4229c217c (diff)
[driver] Emit a warning if the user has requested debug information and we're
using the integrated assembler. rdar://10216353 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index e193c0f505..08d95f51e2 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -2318,7 +2318,11 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
// Ignore explicit -force_cpusubtype_ALL option.
(void) Args.hasArg(options::OPT_force__cpusubtype__ALL);
- // FIXME: Add -g support, once we have it.
+ // FIXME: Add -g support, once we have it. For now, emit a warning indicating
+ // the integrated assembler doesn't support debug info.
+ if (Args.hasArg(options::OPT_g_Group)) {
+ getToolChain().getDriver().Diag(diag::warn_drv_no_debug_w_integrated_as);
+ }
// FIXME: Add -static support, once we have it.