]> granicus.if.org Git - clang/commitdiff
Don't warn about "clang -use-gold-plugin -c ...". With this users can say
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 28 Feb 2011 23:29:45 +0000 (23:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 28 Feb 2011 23:29:45 +0000 (23:29 +0000)
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

lib/Driver/Tools.cpp

index edebdf0b879aafc9ce990968d871a69080c3ec6b..1726769ec2e9602d73d415eb0579374d8874901b 100644 (file)
@@ -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,