[llvm-commits] CVS: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 22:15:01 PST 2004
Changes in directory poolalloc/lib/PoolAllocate:
PoolAllocate.cpp updated: 1.57 -> 1.58
---
Log message:
Adjust to FunctionType changes
---
Diffs of the changes: (+2 -4)
Index: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.57 poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.58
--- poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.57 Sat Feb 7 18:01:22 2004
+++ poolalloc/lib/PoolAllocate/PoolAllocate.cpp Sun Feb 8 22:14:20 2004
@@ -464,11 +464,9 @@
// Figure out what the arguments are to be for the new version of the function
const FunctionType *OldFuncTy = F.getFunctionType();
std::vector<const Type*> ArgTys(FI.ArgNodes.size(), PoolDescPtrTy);
- ArgTys.reserve(OldFuncTy->getParamTypes().size() + FI.ArgNodes.size());
-
- ArgTys.insert(ArgTys.end(), OldFuncTy->getParamTypes().begin(),
- OldFuncTy->getParamTypes().end());
+ ArgTys.reserve(OldFuncTy->getNumParams() + FI.ArgNodes.size());
+ ArgTys.insert(ArgTys.end(), OldFuncTy->param_begin(), OldFuncTy->param_end());
// Create the new function prototype
FunctionType *FuncTy = FunctionType::get(OldFuncTy->getReturnType(), ArgTys,
More information about the llvm-commits
mailing list