[cfe-commits] r152533 - /cfe/trunk/lib/CodeGen/CGCleanup.cpp

Stepan Dyatkovskiy stpworld at narod.ru
Sat Mar 10 22:09:37 PST 2012


Author: dyatkovskiy
Date: Sun Mar 11 00:09:37 2012
New Revision: 152533

URL: http://llvm.org/viewvc/llvm-project?rev=152533&view=rev
Log:
llvm::SwitchInst
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default.
Added some notes relative to case iterators.


Modified:
    cfe/trunk/lib/CodeGen/CGCleanup.cpp

Modified: cfe/trunk/lib/CodeGen/CGCleanup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCleanup.cpp?rev=152533&r1=152532&r2=152533&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCleanup.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCleanup.cpp Sun Mar 11 00:09:37 2012
@@ -504,7 +504,7 @@
     llvm::SwitchInst *si = cast<llvm::SwitchInst>(use.getUser());
     if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) {
       // Replace the switch with a branch.
-      llvm::BranchInst::Create(si->caseBegin().getCaseSuccessor(), si);
+      llvm::BranchInst::Create(si->case_begin().getCaseSuccessor(), si);
 
       // The switch operand is a load from the cleanup-dest alloca.
       llvm::LoadInst *condition = cast<llvm::LoadInst>(si->getCondition());





More information about the cfe-commits mailing list