Revert "CodeGen: Use a binary format for instrumentation based profiling"
I've clearly done something wrong with how to get this to link
correctly. Reverting for now.
This reverts commit r203711.
llvm-svn: 203712
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 061ec48..4bd8b7a 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -42,7 +42,6 @@
class DataLayout;
class FunctionType;
class LLVMContext;
- class ProfileDataReader;
}
namespace clang {
@@ -86,6 +85,7 @@
class CGCUDARuntime;
class BlockFieldFlags;
class FunctionArgList;
+ class PGOProfileData;
struct OrderGlobalInits {
unsigned int priority;
@@ -257,7 +257,7 @@
ARCEntrypoints *ARCData;
llvm::MDNode *NoObjCARCExceptionsMetadata;
RREntrypoints *RRData;
- std::unique_ptr<llvm::ProfileDataReader> PGOReader;
+ PGOProfileData *PGOData;
// 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 @@
return *RRData;
}
- llvm::ProfileDataReader *getPGOReader() const {
- return PGOReader.get();
+ PGOProfileData *getPGOData() const {
+ return PGOData;
}
llvm::Constant *getStaticLocalDeclAddress(const VarDecl *D) {