diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-03-12 20:53:16 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-03-12 20:53:16 +0000 |
| commit | 7c9210c534a8fb77c17da943ea7c7871833b0699 (patch) | |
| tree | 503e0e7236c0e417e35b07f618d71cdaab650b3f /lib/CodeGen/CodeGenModule.h | |
| parent | 2a27efa9157487ec7f6a84662b2780a207e47274 (diff) | |
| download | clang-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.h | 8 |
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) { |
