llvm::SwitchInst
[oota-llvm.git] / lib / Target / CBackend / CBackend.cpp
index 2c1b68544dd9be587c2ed88fefbb6e396d972bf9..b6b209eb06f54234c5ebad71903fbf94d1dce059 100644 (file)
@@ -2393,7 +2393,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) {
   Out << ";\n";
 
   // Skip the first item since that's the default case.
-  for (SwitchInst::CaseIt i = SI.caseBegin(), e = SI.caseEnd(); i != e; ++i) {
+  for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end(); i != e; ++i) {
     ConstantInt* CaseVal = i.getCaseValue();
     BasicBlock* Succ = i.getCaseSuccessor();
     Out << "  case ";