diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-03-12 21:06:31 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-03-12 21:06:31 +0000 |
commit | 07cdaf54b0678548b578063229ba37eb79200ee1 (patch) | |
tree | ca9009b7b0b019896be9117e568b13fdf347710c /lib/CodeGen/CodeGenModule.cpp | |
parent | 7c9210c534a8fb77c17da943ea7c7871833b0699 (diff) | |
download | clang-07cdaf54b0678548b578063229ba37eb79200ee1.tar.gz clang-07cdaf54b0678548b578063229ba37eb79200ee1.tar.bz2 clang-07cdaf54b0678548b578063229ba37eb79200ee1.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 484c4edc24..4f040e2780 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -47,7 +47,6 @@ #include "llvm/IR/Intrinsics.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" -#include "llvm/Profile/ProfileDataReader.h" #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/ErrorHandling.h" @@ -78,7 +77,7 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO, ABI(createCXXABI(*this)), VMContext(M.getContext()), TBAA(0), TheTargetCodeGenInfo(0), Types(*this), VTables(*this), ObjCRuntime(0), OpenCLRuntime(0), CUDARuntime(0), DebugInfo(0), ARCData(0), - NoObjCARCExceptionsMetadata(0), RRData(0), PGOReader(nullptr), + NoObjCARCExceptionsMetadata(0), RRData(0), PGOData(0), CFConstantStringClassRef(0), ConstantStringClassRef(0), NSConstantStringType(0), NSConcreteGlobalBlock(0), NSConcreteStackBlock(0), BlockObjectAssign(0), @@ -134,14 +133,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO, ARCData = new ARCEntrypoints(); RRData = new RREntrypoints(); - if (!CodeGenOpts.InstrProfileInput.empty()) { - if (llvm::error_code EC = llvm::ProfileDataReader::create( - CodeGenOpts.InstrProfileInput, PGOReader)) { - unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, - "Could not read profile: %0"); - getDiags().Report(DiagID) << EC.message(); - } - } + if (!CodeGenOpts.InstrProfileInput.empty()) + PGOData = new PGOProfileData(*this, CodeGenOpts.InstrProfileInput); } CodeGenModule::~CodeGenModule() { |