]> granicus.if.org Git - clang/commit
InstrProf: Avoid creating profile names for symbols in system headers
authorJustin Bogner <mail@justinbogner.com>
Thu, 22 Jan 2015 02:17:23 +0000 (02:17 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 22 Jan 2015 02:17:23 +0000 (02:17 +0000)
commit984e8b85595f3a3d73ea7120488ddc71317f51ff
tree163407c27dd34d249fd53951ccda2366eecf8245
parent197904daa1fc67d7069153e4b5f61ef86b74938d
InstrProf: Avoid creating profile names for symbols in system headers

We don't emit any coverage mapping for uncovered functions that come
from system headers, but we were creating a GlobalVariable with each
of their names. This is wasteful since the linker will need to dead
strip the unused symbols, and it can lead to issues when merging
coverage with others TUs that do have coverage for those functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226764 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
test/CoverageMapping/unused_names.c [new file with mode: 0644]