mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Fix a problem on 64-bit targets where we passed (int)0 through ... instead of
(void*)0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -204,32 +204,32 @@ bool LowerSetJmp::doInitialization(Module& M)
|
|||||||
|
|
||||||
// void __llvm_sjljeh_init_setjmpmap(void**)
|
// void __llvm_sjljeh_init_setjmpmap(void**)
|
||||||
InitSJMap = M.getOrInsertFunction("__llvm_sjljeh_init_setjmpmap",
|
InitSJMap = M.getOrInsertFunction("__llvm_sjljeh_init_setjmpmap",
|
||||||
Type::VoidTy, SBPPTy, 0);
|
Type::VoidTy, SBPPTy, NULL);
|
||||||
// void __llvm_sjljeh_destroy_setjmpmap(void**)
|
// void __llvm_sjljeh_destroy_setjmpmap(void**)
|
||||||
DestroySJMap = M.getOrInsertFunction("__llvm_sjljeh_destroy_setjmpmap",
|
DestroySJMap = M.getOrInsertFunction("__llvm_sjljeh_destroy_setjmpmap",
|
||||||
Type::VoidTy, SBPPTy, 0);
|
Type::VoidTy, SBPPTy, NULL);
|
||||||
|
|
||||||
// void __llvm_sjljeh_add_setjmp_to_map(void**, void*, unsigned)
|
// void __llvm_sjljeh_add_setjmp_to_map(void**, void*, unsigned)
|
||||||
AddSJToMap = M.getOrInsertFunction("__llvm_sjljeh_add_setjmp_to_map",
|
AddSJToMap = M.getOrInsertFunction("__llvm_sjljeh_add_setjmp_to_map",
|
||||||
Type::VoidTy, SBPPTy, SBPTy,
|
Type::VoidTy, SBPPTy, SBPTy,
|
||||||
Type::UIntTy, 0);
|
Type::UIntTy, NULL);
|
||||||
|
|
||||||
// void __llvm_sjljeh_throw_longjmp(int*, int)
|
// void __llvm_sjljeh_throw_longjmp(int*, int)
|
||||||
ThrowLongJmp = M.getOrInsertFunction("__llvm_sjljeh_throw_longjmp",
|
ThrowLongJmp = M.getOrInsertFunction("__llvm_sjljeh_throw_longjmp",
|
||||||
Type::VoidTy, SBPTy, Type::IntTy, 0);
|
Type::VoidTy, SBPTy, Type::IntTy, NULL);
|
||||||
|
|
||||||
// unsigned __llvm_sjljeh_try_catching_longjmp_exception(void **)
|
// unsigned __llvm_sjljeh_try_catching_longjmp_exception(void **)
|
||||||
TryCatchLJ =
|
TryCatchLJ =
|
||||||
M.getOrInsertFunction("__llvm_sjljeh_try_catching_longjmp_exception",
|
M.getOrInsertFunction("__llvm_sjljeh_try_catching_longjmp_exception",
|
||||||
Type::UIntTy, SBPPTy, 0);
|
Type::UIntTy, SBPPTy, NULL);
|
||||||
|
|
||||||
// bool __llvm_sjljeh_is_longjmp_exception()
|
// bool __llvm_sjljeh_is_longjmp_exception()
|
||||||
IsLJException = M.getOrInsertFunction("__llvm_sjljeh_is_longjmp_exception",
|
IsLJException = M.getOrInsertFunction("__llvm_sjljeh_is_longjmp_exception",
|
||||||
Type::BoolTy, 0);
|
Type::BoolTy, NULL);
|
||||||
|
|
||||||
// int __llvm_sjljeh_get_longjmp_value()
|
// int __llvm_sjljeh_get_longjmp_value()
|
||||||
GetLJValue = M.getOrInsertFunction("__llvm_sjljeh_get_longjmp_value",
|
GetLJValue = M.getOrInsertFunction("__llvm_sjljeh_get_longjmp_value",
|
||||||
Type::IntTy, 0);
|
Type::IntTy, NULL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user