diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-15 18:28:16 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-15 18:28:16 +0000 |
| commit | d1002f6fce92e63b0e05d24ac6fd9a8911a314e2 (patch) | |
| tree | 0190f8241b719313e60babb67d6715b82c5b1aba | |
| parent | 6ba9d1f944c4e211c5886b3f83a10f991842282d (diff) | |
| download | bcm5719-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.cpp | 3 |
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)); |

