From 4354f564c21d445812e1d59dc4b2058c5a07dbf3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 23 Aug 2003 23:14:52 +0000 Subject: [PATCH] Rename SwitchInst::dest_push_back -> addCase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8089 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/llvmAsmParser.y | 2 +- lib/Bytecode/Reader/InstructionReader.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 08a855416cf..63254e51d49 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1482,7 +1482,7 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result... std::vector >::iterator I = $8->begin(), E = $8->end(); for (; I != E; ++I) - S->dest_push_back(I->first, I->second); + S->addCase(I->first, I->second); } | SWITCH IntType ValueRef ',' LABEL ValueRef '[' ']' { SwitchInst *S = new SwitchInst(getVal($2, $3), diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index e81927c441b..2ab68bb7b58 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/lib/Bytecode/Reader/InstructionReader.cpp @@ -215,8 +215,8 @@ bool BytecodeParser::ParseInstruction(const unsigned char *&Buf, std::vector &args = *Raw.VarArgs; for (unsigned i = 0; i < args.size(); i += 2) - I->dest_push_back(cast(getValue(Raw.Ty, args[i])), - cast(getValue(Type::LabelTy, args[i+1]))); + I->addCase(cast(getValue(Raw.Ty, args[i])), + cast(getValue(Type::LabelTy, args[i+1]))); delete Raw.VarArgs; return false; -- 2.34.1