]> granicus.if.org Git - clang/commit
CodeGen: Improve warnings about uninstrumented files when profiling
authorJustin Bogner <mail@justinbogner.com>
Thu, 26 Jun 2014 01:45:07 +0000 (01:45 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 26 Jun 2014 01:45:07 +0000 (01:45 +0000)
commitc912e4c787ae01a34fa48576e099fcb5950dd828
tree9b080c3726d35252f76dc40cc9fa021f69f28a40
parent5b3552f7879b2eec0cd69d282b6f2b04b73b20e1
CodeGen: Improve warnings about uninstrumented files when profiling

Improve the warning when building with -fprofile-instr-use and a file
appears not to have been profiled at all. This keys on whether a
function is defined in the main file or not to avoid false negatives
when one includes a header with functions that have been profiled.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211760 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
lib/CodeGen/CodeGenPGO.cpp
lib/CodeGen/CodeGenPGO.h
test/Profile/Inputs/c-unprofiled.proftext [new file with mode: 0644]
test/Profile/Inputs/profiled_header.h [new file with mode: 0644]
test/Profile/c-unprofiled.c [new file with mode: 0644]