From: Rafael Espindola Date: Mon, 28 Feb 2011 23:29:45 +0000 (+0000) Subject: Don't warn about "clang -use-gold-plugin -c ...". With this users can say X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=035ff0c6746a2689667c83d4c02a47d5a7b71e82;p=clang Don't warn about "clang -use-gold-plugin -c ...". With this users can say CC="clang -use-gold-plugin" CFLAGS=-emit-llvm ../configure... and not be hit with a warning for each .c file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126713 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index edebdf0b87..1726769ec2 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1825,6 +1825,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // care to warn the user about. Args.ClaimAllArgs(options::OPT_clang_ignored_f_Group); Args.ClaimAllArgs(options::OPT_clang_ignored_m_Group); + + Args.ClaimAllArgs(options::OPT_use_gold_plugin); } void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,