summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-06 16:05:20 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-06 16:05:20 +0000
commit81a788176ecf158432af2b208b0a85321e5ec74a (patch)
treeb2947562c97e4d330f9ca4176f5bf369e5157337 /bindings
parente3b989d4a4ba47f77d5d38c35ff17e9673d9f87b (diff)
downloadllvm-81a788176ecf158432af2b208b0a85321e5ec74a.tar.gz
llvm-81a788176ecf158432af2b208b0a85321e5ec74a.tar.bz2
llvm-81a788176ecf158432af2b208b0a85321e5ec74a.tar.xz
Adopting a uniform naming convention for type constructors in bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index 6460930eb5..0005bee9b7 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -74,7 +74,7 @@ CAMLprim LLVMTypeRef llvm_i64_type(value Unit) { return LLVMInt64Type(); }
/* int -> lltype */
CAMLprim LLVMTypeRef llvm_make_integer_type(value Width) {
- return LLVMCreateIntType(Int_val(Width));
+ return LLVMIntType(Int_val(Width));
}
/* lltype -> int */
@@ -114,9 +114,9 @@ CAMLprim LLVMTypeRef llvm_ppc_fp128_type(value Unit) {
/* lltype -> lltype array -> bool -> lltype */
CAMLprim LLVMTypeRef llvm_make_function_type(LLVMTypeRef RetTy, value ParamTys,
value IsVarArg) {
- return LLVMCreateFunctionType(RetTy, (LLVMTypeRef *) ParamTys,
- Wosize_val(ParamTys),
- Bool_val(IsVarArg));
+ return LLVMFunctionType(RetTy, (LLVMTypeRef *) ParamTys,
+ Wosize_val(ParamTys),
+ Bool_val(IsVarArg));
}
/* lltype -> bool */
@@ -140,9 +140,9 @@ CAMLprim value llvm_param_types(LLVMTypeRef FunTy) {
/* lltype array -> bool -> lltype */
CAMLprim LLVMTypeRef llvm_make_struct_type(value ElementTypes, value Packed) {
- return LLVMCreateStructType((LLVMTypeRef *) ElementTypes,
- Wosize_val(ElementTypes),
- Bool_val(Packed));
+ return LLVMStructType((LLVMTypeRef *) ElementTypes,
+ Wosize_val(ElementTypes),
+ Bool_val(Packed));
}
/* lltype -> lltype array */
@@ -161,17 +161,17 @@ CAMLprim value llvm_is_packed(LLVMTypeRef StructTy) {
/* lltype -> int -> lltype */
CAMLprim LLVMTypeRef llvm_make_array_type(LLVMTypeRef ElementTy, value Count) {
- return LLVMCreateArrayType(ElementTy, Int_val(Count));
+ return LLVMArrayType(ElementTy, Int_val(Count));
}
/* lltype -> lltype */
CAMLprim LLVMTypeRef llvm_make_pointer_type(LLVMTypeRef ElementTy) {
- return LLVMCreatePointerType(ElementTy);
+ return LLVMPointerType(ElementTy);
}
/* lltype -> int -> lltype */
CAMLprim LLVMTypeRef llvm_make_vector_type(LLVMTypeRef ElementTy, value Count) {
- return LLVMCreateVectorType(ElementTy, Int_val(Count));
+ return LLVMVectorType(ElementTy, Int_val(Count));
}
/* lltype -> lltype */
@@ -197,7 +197,7 @@ CAMLprim LLVMTypeRef llvm_label_type(value Unit) { return LLVMLabelType(); }
/* unit -> lltype */
CAMLprim LLVMTypeRef llvm_make_opaque_type(value Unit) {
- return LLVMCreateOpaqueType();
+ return LLVMOpaqueType();
}