aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-17 20:37:10 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-17 20:37:10 +0000
commit7f6458b7e265d1870f3bd5be2b49bc4d368446b3 (patch)
tree5611431145193c885bb7164aeb52a9e5ec7f58e2 /lib/Driver/Tools.cpp
parentde2676076ba218b5c09a88ac26dd86cc97a9d02e (diff)
Don't warn about -w not being used in a link. Necessary to get sane
results in the gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index ca45468f10..3754d2c4cc 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -3212,6 +3212,9 @@ void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA,
// Silence warning for "clang -g foo.o -o foo"
Args.ClaimAllArgs(options::OPT_g_Group);
+ // and for "clang -g foo.o -o foo". Other warning options are already
+ // handled somewhere else.
+ Args.ClaimAllArgs(options::OPT_w);
if (Arg *A = Args.getLastArg(options::OPT__sysroot_EQ)) {
CmdArgs.push_back("--sysroot");