From 670060dddfa6c538039744a431a41f7cf7a842b3 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 11 Apr 2014 23:21:04 +0000 Subject: [PATCH] blockfreq: Rename BlockProbInfoT to BranchProbabilityInfoT No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206085 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/BlockFrequencyInfoImpl.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h index 9edaa986250..ea5da18ed01 100644 --- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -39,12 +39,12 @@ template struct TypeMap {}; template <> struct TypeMap { typedef BasicBlock BlockT; typedef Function FunctionT; - typedef BranchProbabilityInfo BlockProbInfoT; + typedef BranchProbabilityInfo BranchProbabilityInfoT; }; template <> struct TypeMap { typedef MachineBasicBlock BlockT; typedef MachineFunction FunctionT; - typedef MachineBranchProbabilityInfo BlockProbInfoT; + typedef MachineBranchProbabilityInfo BranchProbabilityInfoT; }; } @@ -57,11 +57,12 @@ template class BlockFrequencyInfoImpl { typedef typename bfi_detail::TypeMap::BlockT BlockT; typedef typename bfi_detail::TypeMap::FunctionT FunctionT; - typedef typename bfi_detail::TypeMap::BlockProbInfoT BlockProbInfoT; + typedef typename bfi_detail::TypeMap::BranchProbabilityInfoT + BranchProbabilityInfoT; DenseMap Freqs; - BlockProbInfoT *BPI; + BranchProbabilityInfoT *BPI; FunctionT *Fn; @@ -288,7 +289,7 @@ class BlockFrequencyInfoImpl { BlockFrequencyInfoImpl() { } - void doFunction(FunctionT *fn, BlockProbInfoT *bpi) { + void doFunction(FunctionT *fn, BranchProbabilityInfoT *bpi) { Fn = fn; BPI = bpi; -- 2.34.1