summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-03-12 20:53:16 +0000
committerJustin Bogner <mail@justinbogner.com>2014-03-12 20:53:16 +0000
commitff9a0582673a6f1e73d5ac60d03e43fb7038ea50 (patch)
tree3d9743bd3c866705dfdbf5b055c5999251841cc9 /clang/lib/CodeGen/CodeGenModule.h
parentac7c599254731fc878b5f913278dcbaaf092a378 (diff)
downloadbcm5719-llvm-ff9a0582673a6f1e73d5ac60d03e43fb7038ea50.tar.gz
bcm5719-llvm-ff9a0582673a6f1e73d5ac60d03e43fb7038ea50.zip
CodeGen: Use a binary format for instrumentation based profiling
This updates CodeGenPGO to use the ProfileDataReader introduced to llvm in r203703 and the new API for writing out the profile introduced to compiler-rt in r203710. llvm-svn: 203711
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 4bd8b7a3de7..061ec48e375 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -42,6 +42,7 @@ namespace llvm {
class DataLayout;
class FunctionType;
class LLVMContext;
+ class ProfileDataReader;
}
namespace clang {
@@ -85,7 +86,6 @@ namespace CodeGen {
class CGCUDARuntime;
class BlockFieldFlags;
class FunctionArgList;
- class PGOProfileData;
struct OrderGlobalInits {
unsigned int priority;
@@ -257,7 +257,7 @@ class CodeGenModule : public CodeGenTypeCache {
ARCEntrypoints *ARCData;
llvm::MDNode *NoObjCARCExceptionsMetadata;
RREntrypoints *RRData;
- PGOProfileData *PGOData;
+ std::unique_ptr<llvm::ProfileDataReader> PGOReader;
// WeakRefReferences - A set of references that have only been seen via
// a weakref so far. This is used to remove the weak of the reference if we
@@ -480,8 +480,8 @@ public:
return *RRData;
}
- PGOProfileData *getPGOData() const {
- return PGOData;
+ llvm::ProfileDataReader *getPGOReader() const {
+ return PGOReader.get();
}
llvm::Constant *getStaticLocalDeclAddress(const VarDecl *D) {
OpenPOWER on IntegriCloud