llvm::SwitchInst
[oota-llvm.git] / lib / Target / CppBackend / CPPBackend.cpp
index 36ed92569e9e5b70f0e8797aa7ceb0992dd58094..107c6ccb47dddcc876b882429b8d2fbb8d5da4a0 100644 (file)
@@ -1090,7 +1090,7 @@ void CppWriter::printInstruction(const Instruction *I,
         << getOpName(SI->getDefaultDest()) << ", "
         << SI->getNumCases() << ", " << bbname << ");";
     nl(Out);
-    for (SwitchInst::ConstCaseIt i = SI->caseBegin(), e = SI->caseEnd();
+    for (SwitchInst::ConstCaseIt i = SI->case_begin(), e = SI->case_end();
          i != e; ++i) {
       const ConstantInt* CaseVal = i.getCaseValue();
       const BasicBlock *BB = i.getCaseSuccessor();