mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Start using the new and improve interface to FunctionType arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -89,9 +89,9 @@ GenericValue Interpreter::runFunction(Function *F,
|
||||
// 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);
|
||||
|
Reference in New Issue
Block a user