summaryrefslogtreecommitdiff
path: root/include/clang/Basic/DiagnosticSemaKinds.td
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-06-26 01:45:07 +0000
committerJustin Bogner <mail@justinbogner.com>2014-06-26 01:45:07 +0000
commitc912e4c787ae01a34fa48576e099fcb5950dd828 (patch)
tree9b080c3726d35252f76dc40cc9fa021f69f28a40 /include/clang/Basic/DiagnosticSemaKinds.td
parent5b3552f7879b2eec0cd69d282b6f2b04b73b20e1 (diff)
downloadclang-c912e4c787ae01a34fa48576e099fcb5950dd828.tar.gz
clang-c912e4c787ae01a34fa48576e099fcb5950dd828.tar.bz2
clang-c912e4c787ae01a34fa48576e099fcb5950dd828.tar.xz
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
Diffstat (limited to 'include/clang/Basic/DiagnosticSemaKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index c691921fa1..9be3d8543a 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -7178,6 +7178,10 @@ def warn_profile_data_out_of_date : Warning<
"profile data may be out of date: of %0 function%s0, %1 %plural{1:has|:have}1"
" no data and %2 %plural{1:has|:have}2 mismatched data that will be ignored">,
InGroup<ProfileInstrOutOfDate>;
+def warn_profile_data_unprofiled : Warning<
+ "no profile data available for file \"%0\"">,
+ InGroup<ProfileInstrUnprofiled>;
+
} // end of instrumentation issue category
} // end of sema component.