[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 12 22:30:59 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.237 -> 1.238
---
Log message:
now that we can pass ranges into CallInst ctors, eliminate vector heap traffic
---
Diffs of the changes: (+2 -2)
Reader.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.237 llvm/lib/Bytecode/Reader/Reader.cpp:1.238
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.237 Mon Feb 12 19:53:54 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Tue Feb 13 00:30:42 2007
@@ -669,7 +669,7 @@
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 @@
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();
More information about the llvm-commits
mailing list