mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Second attempt at de-constifying LLVM Types in FunctionType::get(),
StructType::get() and TargetData::getIntPtrType(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -405,13 +405,13 @@ namespace llvm {
|
||||
mod->setTargetTriple("x86_64-unknown-linux-gnu");
|
||||
|
||||
// Type Definitions
|
||||
std::vector<const Type*>FuncTy_0_args;
|
||||
std::vector<Type*>FuncTy_0_args;
|
||||
FunctionType* FuncTy_0 = FunctionType::get(
|
||||
/*Result=*/IntegerType::get(getGlobalContext(), 32),
|
||||
/*Params=*/FuncTy_0_args,
|
||||
/*isVarArg=*/false);
|
||||
|
||||
std::vector<const Type*>FuncTy_2_args;
|
||||
std::vector<Type*>FuncTy_2_args;
|
||||
FuncTy_2_args.push_back(IntegerType::get(getGlobalContext(), 1));
|
||||
FunctionType* FuncTy_2 = FunctionType::get(
|
||||
/*Result=*/Type::getVoidTy(getGlobalContext()),
|
||||
|
Reference in New Issue
Block a user