mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
De-constify Types in FunctionType::get().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1442,7 +1442,7 @@ bool LLParser::ParseFunctionType(Type *&Result) {
|
||||
"argument attributes invalid in function type");
|
||||
}
|
||||
|
||||
SmallVector<const Type*, 16> ArgListTy;
|
||||
SmallVector<Type*, 16> ArgListTy;
|
||||
for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
|
||||
ArgListTy.push_back(ArgList[i].Ty);
|
||||
|
||||
@ -2655,7 +2655,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
|
||||
|
||||
// Okay, if we got here, the function is syntactically valid. Convert types
|
||||
// and do semantic checks.
|
||||
std::vector<const Type*> ParamTypeList;
|
||||
std::vector<Type*> ParamTypeList;
|
||||
SmallVector<AttributeWithIndex, 8> Attrs;
|
||||
|
||||
if (RetAttrs != Attribute::None)
|
||||
@ -3171,7 +3171,7 @@ bool LLParser::ParseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
|
||||
if (!(PFTy = dyn_cast<PointerType>(RetType)) ||
|
||||
!(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) {
|
||||
// Pull out the types of all of the arguments...
|
||||
std::vector<const Type*> ParamTypes;
|
||||
std::vector<Type*> ParamTypes;
|
||||
for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
|
||||
ParamTypes.push_back(ArgList[i].V->getType());
|
||||
|
||||
@ -3508,7 +3508,7 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
|
||||
if (!(PFTy = dyn_cast<PointerType>(RetType)) ||
|
||||
!(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) {
|
||||
// Pull out the types of all of the arguments...
|
||||
std::vector<const Type*> ParamTypes;
|
||||
std::vector<Type*> ParamTypes;
|
||||
for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
|
||||
ParamTypes.push_back(ArgList[i].V->getType());
|
||||
|
||||
|
Reference in New Issue
Block a user