added std:: to vector

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anand Shukla 2002-07-16 00:04:15 +00:00
parent 6c5ed410b2
commit 18be6fb716

View File

@ -187,7 +187,7 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf,
if (read_vbr(Buf, EndBuf, isExprNumArgs)) return failure(true); if (read_vbr(Buf, EndBuf, isExprNumArgs)) return failure(true);
if (isExprNumArgs) { if (isExprNumArgs) {
unsigned opCode; unsigned opCode;
vector<Constant*> argVec; std::vector<Constant*> argVec;
argVec.reserve(isExprNumArgs); argVec.reserve(isExprNumArgs);
if (read_vbr(Buf, EndBuf, opCode)) return failure(true); if (read_vbr(Buf, EndBuf, opCode)) return failure(true);
@ -218,7 +218,7 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf,
if (isExprNumArgs == 1) { // All one-operand expressions if (isExprNumArgs == 1) { // All one-operand expressions
V = ConstantExpr::get(opCode, argVec[0], Ty); V = ConstantExpr::get(opCode, argVec[0], Ty);
} else if (opCode == Instruction::GetElementPtr) { // GetElementPtr } else if (opCode == Instruction::GetElementPtr) { // GetElementPtr
vector<Value*> IdxList(argVec.begin()+1, argVec.end()); std::vector<Value*> IdxList(argVec.begin()+1, argVec.end());
V = ConstantExpr::get(opCode, argVec[0], IdxList, Ty); V = ConstantExpr::get(opCode, argVec[0], IdxList, Ty);
} else { // All other 2-operand expressions } else { // All other 2-operand expressions
V = ConstantExpr::get(opCode, argVec[0], argVec[1], Ty); V = ConstantExpr::get(opCode, argVec[0], argVec[1], Ty);