mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +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:
@ -381,11 +381,10 @@ void BytecodeParser::materializeFunction(Function* F) {
|
||||
// Insert arguments into the value table before we parse the first basic
|
||||
// block in the function, but after we potentially read in the
|
||||
// compaction table.
|
||||
const FunctionType::ParamTypes &Params =
|
||||
F->getFunctionType()->getParamTypes();
|
||||
const FunctionType *FT = F->getFunctionType();
|
||||
Function::aiterator AI = F->abegin();
|
||||
for (FunctionType::ParamTypes::const_iterator It = Params.begin();
|
||||
It != Params.end(); ++It, ++AI)
|
||||
for (FunctionType::param_iterator It = FT->param_begin();
|
||||
It != FT->param_end(); ++It, ++AI)
|
||||
insertValue(AI, getTypeSlot(AI->getType()), Values);
|
||||
InsertedArguments = true;
|
||||
}
|
||||
@ -404,11 +403,10 @@ void BytecodeParser::materializeFunction(Function* F) {
|
||||
// Insert arguments into the value table before we parse the first basic
|
||||
// block in the function, but after we potentially read in the
|
||||
// compaction table.
|
||||
const FunctionType::ParamTypes &Params =
|
||||
F->getFunctionType()->getParamTypes();
|
||||
const FunctionType *FT = F->getFunctionType();
|
||||
Function::aiterator AI = F->abegin();
|
||||
for (FunctionType::ParamTypes::const_iterator It = Params.begin();
|
||||
It != Params.end(); ++It, ++AI)
|
||||
for (FunctionType::param_iterator It = FT->param_begin();
|
||||
It != FT->param_end(); ++It, ++AI)
|
||||
insertValue(AI, getTypeSlot(AI->getType()), Values);
|
||||
InsertedArguments = true;
|
||||
}
|
||||
@ -424,11 +422,10 @@ void BytecodeParser::materializeFunction(Function* F) {
|
||||
// list for the function, but after we potentially read in the compaction
|
||||
// table.
|
||||
if (!InsertedArguments) {
|
||||
const FunctionType::ParamTypes &Params =
|
||||
F->getFunctionType()->getParamTypes();
|
||||
const FunctionType *FT = F->getFunctionType();
|
||||
Function::aiterator AI = F->abegin();
|
||||
for (FunctionType::ParamTypes::const_iterator It = Params.begin();
|
||||
It != Params.end(); ++It, ++AI)
|
||||
for (FunctionType::param_iterator It = FT->param_begin();
|
||||
It != FT->param_end(); ++It, ++AI)
|
||||
insertValue(AI, getTypeSlot(AI->getType()), Values);
|
||||
InsertedArguments = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user