forked from OSchip/llvm-project
Rename SwitchInst::dest_push_back -> addCase
llvm-svn: 8089
This commit is contained in:
parent
180e14cb87
commit
6a2b859191
|
@ -1482,7 +1482,7 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result...
|
|||
std::vector<std::pair<Constant*,BasicBlock*> >::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),
|
||||
|
|
|
@ -215,8 +215,8 @@ bool BytecodeParser::ParseInstruction(const unsigned char *&Buf,
|
|||
|
||||
std::vector<unsigned> &args = *Raw.VarArgs;
|
||||
for (unsigned i = 0; i < args.size(); i += 2)
|
||||
I->dest_push_back(cast<Constant>(getValue(Raw.Ty, args[i])),
|
||||
cast<BasicBlock>(getValue(Type::LabelTy, args[i+1])));
|
||||
I->addCase(cast<Constant>(getValue(Raw.Ty, args[i])),
|
||||
cast<BasicBlock>(getValue(Type::LabelTy, args[i+1])));
|
||||
|
||||
delete Raw.VarArgs;
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue