1,$s/llvm::Type::getInt\(..\)Ty(builder.getContext())/builder.getInt\1Ty()/g
1,$s/builder.getInt\(..*\)Ty()->getPointerTo()/builder.getInt\1PtrTy()/g
vi sub commands (second one was not a reversion but requested by
Tobias Grosser.
Mod was tested, but other examples have failed to build as they are currently
being thrashed with the const qualifier removal change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134985
91177308-0d34-0410-b5e6-
96231b3b80d8
llvm::Value *cast =
builder.CreatePointerCast(stringVar,
llvm::Value *cast =
builder.CreatePointerCast(stringVar,
- builder.getInt8Ty()->getPointerTo());
+ builder.getInt8PtrTy());
builder.CreateCall(printFunct, cast);
}
builder.CreateCall(printFunct, cast);
}
llvm::Value *cast =
builder.CreateBitCast(stringVar,
llvm::Value *cast =
builder.CreateBitCast(stringVar,
- builder.getInt8Ty()->getPointerTo());
+ builder.getInt8PtrTy());
builder.CreateCall2(&printFunct, &toPrint, cast);
}
builder.CreateCall2(&printFunct, &toPrint, cast);
}
ourExceptionNotThrownState);
const llvm::PointerType *exceptionStorageType =
ourExceptionNotThrownState);
const llvm::PointerType *exceptionStorageType =
- builder.getInt8Ty()->getPointerTo();
+ builder.getInt8PtrTy();
*exceptionStorage =
createEntryBlockAlloca(toAddTo,
"exceptionStorage",
*exceptionStorage =
createEntryBlockAlloca(toAddTo,
"exceptionStorage",
llvm::Function *toPrint32Int = module.getFunction("print32Int");
ArgTypes argTypes;
llvm::Function *toPrint32Int = module.getFunction("print32Int");
ArgTypes argTypes;
- argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
+ argTypes.push_back(builder.getInt32Ty());
ArgNames argNames;
argNames.push_back("exceptTypeToThrow");
ArgNames argNames;
argNames.push_back("exceptTypeToThrow");
llvm::Function *personality = module.getFunction("ourPersonality");
llvm::Value *functPtr =
builder.CreatePointerCast(personality,
llvm::Function *personality = module.getFunction("ourPersonality");
llvm::Value *functPtr =
builder.CreatePointerCast(personality,
- builder.getInt8Ty()->getPointerTo());
+ builder.getInt8PtrTy());
args.clear();
args.push_back(unwindException);
args.clear();
args.push_back(unwindException);
llvm::LLVMContext &context = module.getContext();
namedValues.clear();
ArgTypes unwindArgTypes;
llvm::LLVMContext &context = module.getContext();
namedValues.clear();
ArgTypes unwindArgTypes;
- unwindArgTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
+ unwindArgTypes.push_back(builder.getInt32Ty());
ArgNames unwindArgNames;
unwindArgNames.push_back("exceptTypeToThrow");
ArgNames unwindArgNames;
unwindArgNames.push_back("exceptTypeToThrow");
// Create our type info type
ourTypeInfoType = llvm::StructType::get(context,
// Create our type info type
ourTypeInfoType = llvm::StructType::get(context,
- TypeArray(llvm::Type::getInt32Ty(builder.getContext())));
+ TypeArray(builder.getInt32Ty()));
// Create OurException type
ourExceptionType = llvm::StructType::get(context,
TypeArray(ourTypeInfoType));
// Create OurException type
ourExceptionType = llvm::StructType::get(context,
TypeArray(ourTypeInfoType));
// Does this cause problems?
ourUnwindExceptionType =
llvm::StructType::get(context,
// Does this cause problems?
ourUnwindExceptionType =
llvm::StructType::get(context,
- TypeArray(llvm::Type::getInt64Ty(builder.getContext())));
+ TypeArray(builder.getInt64Ty()));
struct OurBaseException_t dummyException;
struct OurBaseException_t dummyException;
const llvm::Type *retType = builder.getVoidTy();
argTypes.clear();
const llvm::Type *retType = builder.getVoidTy();
argTypes.clear();
- argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt32Ty());
+ argTypes.push_back(builder.getInt8PtrTy());
retType = builder.getVoidTy();
argTypes.clear();
retType = builder.getVoidTy();
argTypes.clear();
- argTypes.push_back(llvm::Type::getInt64Ty(builder.getContext()));
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt64Ty());
+ argTypes.push_back(builder.getInt8PtrTy());
retType = builder.getVoidTy();
argTypes.clear();
retType = builder.getVoidTy();
argTypes.clear();
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt8PtrTy());
retType = builder.getVoidTy();
argTypes.clear();
retType = builder.getVoidTy();
argTypes.clear();
- argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
+ argTypes.push_back(builder.getInt32Ty());
retType = builder.getVoidTy();
argTypes.clear();
retType = builder.getVoidTy();
argTypes.clear();
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt8PtrTy());
- retType = builder.getInt8Ty()->getPointerTo();
+ retType = builder.getInt8PtrTy();
- argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
+ argTypes.push_back(builder.getInt32Ty());
retType = builder.getInt32Ty();
argTypes.clear();
retType = builder.getInt32Ty();
argTypes.clear();
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt8PtrTy());
retType = builder.getInt32Ty();
argTypes.clear();
retType = builder.getInt32Ty();
argTypes.clear();
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt8PtrTy());
retType = builder.getInt32Ty();
argTypes.clear();
retType = builder.getInt32Ty();
argTypes.clear();
- argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
- argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
- argTypes.push_back(llvm::Type::getInt64Ty(builder.getContext()));
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
- argTypes.push_back(builder.getInt8Ty()->getPointerTo());
+ argTypes.push_back(builder.getInt32Ty());
+ argTypes.push_back(builder.getInt32Ty());
+ argTypes.push_back(builder.getInt64Ty());
+ argTypes.push_back(builder.getInt8PtrTy());
+ argTypes.push_back(builder.getInt8PtrTy());