From 58107dd547a883927c9be9a92b8396a7700685d9 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Tue, 29 May 2012 12:26:47 +0000 Subject: ConstantRangesSet renamed to IntegersSubset. CRSBuilder renamed to IntegersSubsetMapping. llvm-svn: 157612 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index d4549642909..7dd18c87ffe 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1157,12 +1157,12 @@ static void WriteInstruction(const Instruction &I, unsigned InstID, Vals64.push_back(SI.getNumCases()); for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end(); i != e; ++i) { - ConstantRangesSet CRS = i.getCaseValueEx(); - Vals64.push_back(CRS.getNumItems()); - for (unsigned ri = 0, rn = CRS.getNumItems(); ri != rn; ++ri) { - ConstantRangesSet::Range r = CRS.getItem(ri); + IntegersSubset CaseRanges = i.getCaseValueEx(); + Vals64.push_back(CaseRanges.getNumItems()); + for (unsigned ri = 0, rn = CaseRanges.getNumItems(); ri != rn; ++ri) { + IntegersSubset::Range r = CaseRanges.getItem(ri); - Vals64.push_back(CRS.isSingleNumber(ri)); + Vals64.push_back(CaseRanges.isSingleNumber(ri)); const APInt &Low = r.Low; const APInt &High = r.High; -- cgit v1.2.3