summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.h
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
commit40b8ba1496e54066b69c181b40d37ec1a823862b (patch)
tree0803ea1ed0709c089a204898ea6fafbd4c3a1ec1 /clang/lib/CodeGen/CodeGenPGO.h
parent2710d01ce2394637070472f0355138f162315ec1 (diff)
downloadbcm5719-llvm-40b8ba1496e54066b69c181b40d37ec1a823862b.tar.gz
bcm5719-llvm-40b8ba1496e54066b69c181b40d37ec1a823862b.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.h')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h
index c4348085882..2f4aa660bea 100644
--- a/clang/lib/CodeGen/CodeGenPGO.h
+++ b/clang/lib/CodeGen/CodeGenPGO.h
@@ -118,7 +118,8 @@ private:
void computeRegionCounts(const Decl *D);
void applyFunctionAttributes(llvm::IndexedInstrProfReader *PGOReader,
llvm::Function *Fn);
- void loadRegionCounts(llvm::IndexedInstrProfReader *PGOReader);
+ void loadRegionCounts(llvm::IndexedInstrProfReader *PGOReader,
+ bool IsInMainFile);
void emitCounterVariables();
llvm::GlobalVariable *buildDataVar();
OpenPOWER on IntegriCloud