From 65512647cc63942e86681a2291abf58f93d88f4f Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Sat, 2 May 2015 05:00:55 +0000 Subject: InstrProf: Cede ownership of createProfileWeights to CGF The fact that PGO has a say in how these branch weights are determined isn't interesting to most of CodeGen, so it makes more sense for this API to be accessible via CodeGenFunction rather than CodeGenPGO. llvm-svn: 236380 --- clang/lib/CodeGen/CodeGenPGO.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenPGO.h') diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h index 13bb5a2fc86..de6f369fb35 100644 --- a/clang/lib/CodeGen/CodeGenPGO.h +++ b/clang/lib/CodeGen/CodeGenPGO.h @@ -78,11 +78,6 @@ public: setCurrentRegionCount(*Count); } - /// Calculate branch weights appropriate for PGO data - llvm::MDNode *createBranchWeights(uint64_t TrueCount, uint64_t FalseCount); - llvm::MDNode *createBranchWeights(ArrayRef Weights); - llvm::MDNode *createLoopWeights(const Stmt *Cond, uint64_t LoopCount); - /// Check if we need to emit coverage mapping for a given declaration void checkGlobalDecl(GlobalDecl GD); /// Assign counters to regions and configure them for PGO of a given -- cgit v1.2.3