summaryrefslogtreecommitdiff
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-05-29 12:26:47 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-05-29 12:26:47 +0000
commit0aa32d5d0ff6cd65b6cff957858a79e2d2a614bd (patch)
treeb35a3334dc0afe235eacc28725ff35d6388dc7ba /lib/VMCore/Instructions.cpp
parentb34d3aa35b199969168f41a12e92e5d2f0e9367f (diff)
downloadllvm-0aa32d5d0ff6cd65b6cff957858a79e2d2a614bd.tar.gz
llvm-0aa32d5d0ff6cd65b6cff957858a79e2d2a614bd.tar.bz2
llvm-0aa32d5d0ff6cd65b6cff957858a79e2d2a614bd.tar.xz
ConstantRangesSet renamed to IntegersSubset. CRSBuilder renamed to IntegersSubsetMapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 42a92d955c..26cc6322da 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -3169,16 +3169,16 @@ SwitchInst::~SwitchInst() {
/// addCase - Add an entry to the switch instruction...
///
void SwitchInst::addCase(ConstantInt *OnVal, BasicBlock *Dest) {
- CRSBuilder CB;
+ IntegersSubsetToBB Mapping;
// FIXME: Currently we work with ConstantInt based cases.
// So inititalize IntItem container directly from ConstantInt.
- CB.add(IntItem::fromConstantInt(OnVal));
- ConstantRangesSet CRS = CB.getCase();
- addCase(CRS, Dest);
+ Mapping.add(IntItem::fromConstantInt(OnVal));
+ IntegersSubset CaseRanges = Mapping.getCase();
+ addCase(CaseRanges, Dest);
}
-void SwitchInst::addCase(ConstantRangesSet& OnVal, BasicBlock *Dest) {
+void SwitchInst::addCase(IntegersSubset& OnVal, BasicBlock *Dest) {
unsigned NewCaseIdx = getNumCases();
unsigned OpNo = NumOperands;
if (OpNo+2 > ReservedSpace)