]> granicus.if.org Git - clang/commit
CodeGen: Emit warnings for out of date profile data during PGO
authorJustin Bogner <mail@justinbogner.com>
Tue, 15 Apr 2014 21:22:35 +0000 (21:22 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 15 Apr 2014 21:22:35 +0000 (21:22 +0000)
commit859d2b24895e5bfaa52005a48a36236024175bfb
tree79554223b7d00d1a476b438c5958069506a8fbd2
parent206fe8c782ce766fccf35c5769c33df331fe9e6c
CodeGen: Emit warnings for out of date profile data during PGO

This adds a warning that triggers when profile data doesn't match for
the source that's being compiled with -fprofile-instr-use=. This fires
only once per translation unit, as warning on every mismatched
function would be quite noisy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206322 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
test/Profile/c-outdated-data.c