mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fixed downrev Ocaml compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1aad74c9e8
commit
633360c9d9
@ -416,7 +416,7 @@ CAMLprim value llvm_lookup_global(value Name, LLVMModuleRef M) {
|
||||
CAMLparam1(Name);
|
||||
LLVMValueRef GlobalVar;
|
||||
if ((GlobalVar = LLVMGetNamedGlobal(M, String_val(Name)))) {
|
||||
value Option = caml_alloc(1, 1);
|
||||
value Option = alloc(1, 1);
|
||||
Field(Option, 0) = (value) GlobalVar;
|
||||
CAMLreturn(Option);
|
||||
}
|
||||
@ -493,7 +493,7 @@ CAMLprim value llvm_lookup_function(value Name, LLVMModuleRef M) {
|
||||
CAMLparam1(Name);
|
||||
LLVMValueRef Fn;
|
||||
if ((Fn = LLVMGetNamedFunction(M, String_val(Name)))) {
|
||||
value Option = caml_alloc(1, 1);
|
||||
value Option = alloc(1, 1);
|
||||
Field(Option, 0) = (value) Fn;
|
||||
CAMLreturn(Option);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user