summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 06:30:42 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 06:30:42 +0000
commitabe7342dc2aad9088cde2f770bd5880c023abbbb (patch)
tree4b6d1170e3b9a746ed777c30d0b4f8d62f2be77a /llvm/lib/Bytecode
parente563e480d9fc91f886d2774adc4c4112a3cef70a (diff)
downloadbcm5719-llvm-abe7342dc2aad9088cde2f770bd5880c023abbbb.tar.gz
bcm5719-llvm-abe7342dc2aad9088cde2f770bd5880c023abbbb.zip
now that we can pass ranges into CallInst ctors, eliminate vector heap traffic
llvm-svn: 34229
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index 0299da6d044..d1610515362 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/lib/Bytecode/Reader/Reader.cpp
@@ -669,7 +669,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
const FunctionType *FTy = dyn_cast<FunctionType>(PTy->getElementType());
if (FTy == 0) error("Call to non function pointer value!");
- std::vector<Value *> Params;
+ SmallVector<Value *, 8> Params;
if (!FTy->isVarArg()) {
FunctionType::param_iterator It = FTy->param_begin();
@@ -720,7 +720,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
if (FTy == 0)
error("Invoke to non function pointer value!");
- std::vector<Value *> Params;
+ SmallVector<Value *, 8> Params;
BasicBlock *Normal, *Except;
unsigned CallingConv = Oprnds.back();
Oprnds.pop_back();
OpenPOWER on IntegriCloud