Move TargetData to DataLayout.
[oota-llvm.git] / bindings / ocaml / llvm / llvm_ocaml.c
index b64bba17ab843e83d5f0a79bb39c1d1a5e347a9b..c984bd154cc2707d09f93ba36b9bc5822aeeb4d3 100644 (file)
@@ -1163,7 +1163,7 @@ CAMLprim value llvm_instr_get_opcode(LLVMValueRef Inst) {
   if (!LLVMIsAInstruction(Inst))
       failwith("Not an instruction");
   o = LLVMGetInstructionOpcode(Inst);
-  assert (o <= LLVMUnwind );
+  assert (o <= LLVMLandingPad);
   return Val_int(o);
 }
 
@@ -1277,6 +1277,9 @@ static struct custom_operations builder_ops = {
   custom_hash_default,
   custom_serialize_default,
   custom_deserialize_default
+#ifdef custom_compare_ext_default
+  , custom_compare_ext_default
+#endif
 };
 
 static value alloc_builder(LLVMBuilderRef B) {