diff options
author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-03-11 06:09:17 +0000 |
---|---|---|
committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-03-11 06:09:17 +0000 |
commit | 3d3abe0852d5f499bed7ab014519dd582a0a795d (patch) | |
tree | 645e974422551dde0c9e4c59a575fb202955d05b /tools/llvm-diff | |
parent | 92a3e9d63a4fd408fce76c1b2ba71b5a7fb04b8a (diff) | |
download | external_llvm-3d3abe0852d5f499bed7ab014519dd582a0a795d.zip external_llvm-3d3abe0852d5f499bed7ab014519dd582a0a795d.tar.gz external_llvm-3d3abe0852d5f499bed7ab014519dd582a0a795d.tar.bz2 |
llvm::SwitchInst
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default.
Added some notes relative to case iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-diff')
-rw-r--r-- | tools/llvm-diff/DifferenceEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-diff/DifferenceEngine.cpp b/tools/llvm-diff/DifferenceEngine.cpp index 726da71..a5a99f5 100644 --- a/tools/llvm-diff/DifferenceEngine.cpp +++ b/tools/llvm-diff/DifferenceEngine.cpp @@ -320,11 +320,11 @@ class FunctionDifferenceEngine { DenseMap<ConstantInt*,BasicBlock*> LCases; - for (SwitchInst::CaseIt I = LI->caseBegin(), E = LI->caseEnd(); + for (SwitchInst::CaseIt I = LI->case_begin(), E = LI->case_end(); I != E; ++I) LCases[I.getCaseValue()] = I.getCaseSuccessor(); - for (SwitchInst::CaseIt I = RI->caseBegin(), E = RI->caseEnd(); + for (SwitchInst::CaseIt I = RI->case_begin(), E = RI->case_end(); I != E; ++I) { ConstantInt *CaseValue = I.getCaseValue(); BasicBlock *LCase = LCases[CaseValue]; |