[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 22:22:28 PST 2004
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Interpreter.cpp updated: 1.20 -> 1.21
---
Log message:
Start using the new and improve interface to FunctionType arguments
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.20 llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.21
--- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.20 Sun Dec 28 03:44:37 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp Sun Feb 8 22:13:51 2004
@@ -89,9 +89,9 @@
// take into account gratuitous differences in declared types,
// though.
std::vector<GenericValue> ActualArgs;
- const unsigned ArgCount = F->getFunctionType()->getParamTypes().size();
+ const unsigned ArgCount = F->getFunctionType()->getNumParams();
for (unsigned i = 0; i < ArgCount; ++i)
- ActualArgs.push_back (ArgValues[i]);
+ ActualArgs.push_back(ArgValues[i]);
// Set up the function call.
callFunction(F, ActualArgs);
More information about the llvm-commits
mailing list