diff options
author | Aditya Kumar <hiraditya@msn.com> | 2016-09-01 23:35:26 +0000 |
---|---|---|
committer | Aditya Kumar <hiraditya@msn.com> | 2016-09-01 23:35:26 +0000 |
commit | 356f79d5357a14cf57014cf05757412ad10bc236 (patch) | |
tree | cf3477b34fecc101a648108665fc8d4331d37dd2 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | |
parent | e81d50b3b9fce8abb9dff7526ec92e15666a692f (diff) | |
download | bcm5719-llvm-356f79d5357a14cf57014cf05757412ad10bc236.tar.gz bcm5719-llvm-356f79d5357a14cf57014cf05757412ad10bc236.zip |
[SelectionDAGBuilder] Add const to relevant places
Reviewers: hans, evandro, sebpop
Differential Revision: https://reviews.llvm.org/D24112
llvm-svn: 280430
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index 6672de028cd..93a577a978d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -305,12 +305,13 @@ private: }; /// Check whether a range of clusters is dense enough for a jump table. - bool isDense(const CaseClusterVector &Clusters, unsigned *TotalCases, - unsigned First, unsigned Last, unsigned MinDensity); + bool isDense(const CaseClusterVector &Clusters, + const SmallVectorImpl<unsigned> &TotalCases, + unsigned First, unsigned Last, unsigned MinDensity) const; /// Build a jump table cluster from Clusters[First..Last]. Returns false if it /// decides it's not a good idea. - bool buildJumpTable(CaseClusterVector &Clusters, unsigned First, + bool buildJumpTable(const CaseClusterVector &Clusters, unsigned First, unsigned Last, const SwitchInst *SI, MachineBasicBlock *DefaultMBB, CaseCluster &JTCluster); |