]> granicus.if.org Git - clang/commit
Only pass -coverage-notes-file when emitting coverage
authorReid Kleckner <rnk@google.com>
Thu, 26 Sep 2019 18:13:19 +0000 (18:13 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 26 Sep 2019 18:13:19 +0000 (18:13 +0000)
commitd09bf7265cb62f0d01eb4b685ac0b326ff189632
treec618137cd25394cc6f3c6263518986e225eac25b
parentc6e4e7210cd1f80a0492f6bf1dc1f717a1cf0351
Only pass -coverage-notes-file when emitting coverage

The only functional change here is that -coverage-notes-file is not
passed to -cc1 in some situations.

This code appears to be trying to put the gcno and gcda output next to
the final object file, but it's doing that in a really convoluted way
that needs to be re-examined. It looks for -c or -S in the original
command, and then looks at the -o argument if present in order to handle
the -fno-integrated-as case. However, this doesn't work if this is a
link command with multiple inputs. I looked into fixing this, but the
check-profile test suite has a lot of dependencies on this behavior, so
I left it all alone.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/coverage_no_integrated_as.c