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)
commit40b8ba1496e54066b69c181b40d37ec1a823862b
tree0803ea1ed0709c089a204898ea6fafbd4c3a1ec1
parent2710d01ce2394637070472f0355138f162315ec1
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.

llvm-svn: 211760
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CodeGenPGO.h
clang/test/Profile/Inputs/c-unprofiled.proftext [new file with mode: 0644]
clang/test/Profile/Inputs/profiled_header.h [new file with mode: 0644]
clang/test/Profile/c-unprofiled.c [new file with mode: 0644]