summaryrefslogtreecommitdiff
path: root/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
commit7c9210c534a8fb77c17da943ea7c7871833b0699 (patch)
tree503e0e7236c0e417e35b07f618d71cdaab650b3f /lib/CodeGen/CodeGenModule.h
parent2a27efa9157487ec7f6a84662b2780a207e47274 (diff)
downloadclang-7c9210c534a8fb77c17da943ea7c7871833b0699.tar.gz
clang-7c9210c534a8fb77c17da943ea7c7871833b0699.tar.bz2
clang-7c9210c534a8fb77c17da943ea7c7871833b0699.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 4bd8b7a3de..061ec48e37 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/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) {