summaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-05-19 13:14:30 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-05-19 13:14:30 +0000
commitf4c261b1378b0f7aaede3a791f0e05c9ab94ea34 (patch)
tree119b3eebf7c0b9fc17b8c8e2da131a65ec1d01b2 /lib/Target/CppBackend
parent769237bb92515cc8680538f95dfb2eef76ecadd2 (diff)
downloadllvm-f4c261b1378b0f7aaede3a791f0e05c9ab94ea34.tar.gz
llvm-f4c261b1378b0f7aaede3a791f0e05c9ab94ea34.tar.bz2
llvm-f4c261b1378b0f7aaede3a791f0e05c9ab94ea34.tar.xz
Ordinary PR1255 patch: DifferenceEngine and CPPBackend adopted to the new SwitchInst methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 69f0ff87ed..9f9545559c 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -1105,7 +1105,7 @@ void CppWriter::printInstruction(const Instruction *I,
nl(Out);
for (SwitchInst::ConstCaseIt i = SI->case_begin(), e = SI->case_end();
i != e; ++i) {
- const ConstantInt* CaseVal = i.getCaseValue();
+ const ConstantRangesSet CaseVal = i.getCaseValueEx();
const BasicBlock *BB = i.getCaseSuccessor();
Out << iName << "->addCase("
<< getOpName(CaseVal) << ", "