Added C and Ocaml bindings for functions, basic blocks, and
[oota-llvm.git] / test / Bindings / Ocaml / bitwriter.ml
index 5421e09bceaf2e6212611594c22c14f433d2c60d..7bcdd4768f98851bfd9fe19af9eb97f4ad366f43 100644 (file)
@@ -11,6 +11,6 @@ let test x = if not x then exit 1 else ()
 let _ =
   let m = Llvm.create_module "ocaml_test_module" in
   
-  ignore (Llvm.add_type_name "caml_int_ty" Llvm.i32_type m);
+  ignore (Llvm.define_type_name "caml_int_ty" Llvm.i32_type m);
   
   test (Llvm_bitwriter.write_bitcode_file m Sys.argv.(1))