summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-15 18:28:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-15 18:28:16 +0000
commitd1002f6fce92e63b0e05d24ac6fd9a8911a314e2 (patch)
tree0190f8241b719313e60babb67d6715b82c5b1aba
parent6ba9d1f944c4e211c5886b3f83a10f991842282d (diff)
downloadbcm5719-llvm-d1002f6fce92e63b0e05d24ac6fd9a8911a314e2.tar.gz
bcm5719-llvm-d1002f6fce92e63b0e05d24ac6fd9a8911a314e2.zip
Fixes PR8611.
Silence warning about -g not being used during linking. I couldn't find any change in behavior in gcc liking when given -g. Please open another bug if I missed something. llvm-svn: 119166
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 223576e71d1..31def8f9e02 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -3207,6 +3207,9 @@ void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA,
const Driver &D = ToolChain.getDriver();
ArgStringList CmdArgs;
+ // Silence warning for "clang -g foo.o -o foo"
+ Args.ClaimAllArgs(options::OPT_g_Group);
+
if (Arg *A = Args.getLastArg(options::OPT__sysroot_EQ)) {
CmdArgs.push_back("--sysroot");
CmdArgs.push_back(A->getValue(Args));
OpenPOWER on IntegriCloud