summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2011-12-20 20:03:10 +0000
committerJakub Staszak <kubastaszak@gmail.com>2011-12-20 20:03:10 +0000
commit96f8c551e3da84528e60298823c5ae3a30153bf8 (patch)
tree4d545b2d441f5f7e7f1785ef993312b3bd4b0aa0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parentc8ebeff9a1f07562dcdf7f649c05d734362d21cd (diff)
downloadbcm5719-llvm-96f8c551e3da84528e60298823c5ae3a30153bf8.tar.gz
bcm5719-llvm-96f8c551e3da84528e60298823c5ae3a30153bf8.zip
Add some constantness to BranchProbabilityInfo and BlockFrequnencyInfo.
llvm-svn: 146986
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
index 5147b6cb232..36bdf38c48e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
@@ -454,7 +454,8 @@ private:
MachineBasicBlock* Default,
MachineBasicBlock *SwitchBB);
- uint32_t getEdgeWeight(MachineBasicBlock *Src, MachineBasicBlock *Dst);
+ uint32_t getEdgeWeight(const MachineBasicBlock *Src,
+ const MachineBasicBlock *Dst) const;
void addSuccessorWithWeight(MachineBasicBlock *Src, MachineBasicBlock *Dst,
uint32_t Weight = 0);
public:
OpenPOWER on IntegriCloud