From 97b02fc1b3d27e0d86cb1203aff77a3104f1a793 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Sun, 11 Mar 2012 06:09:17 +0000 Subject: llvm::SwitchInst Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default. Added some notes relative to case iterators. llvm-svn: 152532 --- llvm/lib/Target/CBackend/CBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CBackend/CBackend.cpp') diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index 2c1b68544dd..b6b209eb06f 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -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 "; -- cgit v1.2.3