diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-10-04 22:35:48 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-10-04 22:35:48 +0000 |
commit | 6c98dfd0f4f7ee758708fc80fc58ee167669ee5b (patch) | |
tree | 176376b83cbba892ba6ec2b5dae4041a7c4810f8 /clang/lib | |
parent | 7dc477ef770a8cd624e044de8a0e14fd961b4966 (diff) | |
download | bcm5719-llvm-6c98dfd0f4f7ee758708fc80fc58ee167669ee5b.tar.gz bcm5719-llvm-6c98dfd0f4f7ee758708fc80fc58ee167669ee5b.zip |
[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.
llvm-svn: 141127
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 4762c650409..e193c0f505a 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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. |