mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Introduce and use convenience methods for getting pointer types
where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -25,9 +25,9 @@ void llvm::InsertProfilingInitCall(Function *MainFn, const char *FnName,
|
||||
GlobalValue *Array) {
|
||||
LLVMContext &Context = MainFn->getContext();
|
||||
const Type *ArgVTy =
|
||||
PointerType::getUnqual(PointerType::getUnqual(Type::getInt8Ty(Context)));
|
||||
PointerType::getUnqual(Type::getInt8PtrTy(Context));
|
||||
const PointerType *UIntPtr =
|
||||
PointerType::getUnqual(Type::getInt32Ty(Context));
|
||||
Type::getInt32PtrTy(Context);
|
||||
Module &M = *MainFn->getParent();
|
||||
Constant *InitFn = M.getOrInsertFunction(FnName, Type::getInt32Ty(Context),
|
||||
Type::getInt32Ty(Context),
|
||||
|
Reference in New Issue
Block a user