From 43f7e62442f17a2527f6eed387c86b38ffd5dc2a Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 4 Oct 2011 22:35:48 +0000 Subject: [driver] Improve r141053 by only emitting the warning if the original input was assembly. Otherwise, something like -save-temps causes the integrated assembler to warn. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141127 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lib/Driver/Tools.cpp') diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 4762c65040..e193c0f505 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2318,21 +2318,7 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA, // Ignore explicit -force_cpusubtype_ALL option. (void) Args.hasArg(options::OPT_force__cpusubtype__ALL); - // Determine the original source input. - const Action *SourceAction = &JA; - while (SourceAction->getKind() != Action::InputClass) { - assert(!SourceAction->getInputs().empty() && "unexpected root action!"); - SourceAction = SourceAction->getInputs()[0]; - } - - // FIXME: Add -g support, once we have it. For now, emit a warning indicating - // the integrated assembler doesn't support debug info. - if (SourceAction->getType() == types::TY_Asm || - SourceAction->getType() == types::TY_PP_Asm) { - if (Args.hasArg(options::OPT_g_Group)) { - getToolChain().getDriver().Diag(diag::warn_drv_no_debug_w_integrated_as); - } - } + // FIXME: Add -g support, once we have it. // FIXME: Add -static support, once we have it. -- cgit v1.2.3-18-g5258