[PATCH] D52196: [OCaml] Add missing instruction opcodes to OCaml API
whitequark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 17:03:46 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342427: [OCaml] Add missing instruction opcodes to OCaml API (authored by whitequark, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D52196
Files:
llvm/trunk/bindings/ocaml/llvm/llvm.ml
llvm/trunk/bindings/ocaml/llvm/llvm.mli
llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
Index: llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
===================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
+++ llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
@@ -1515,7 +1515,7 @@
if (!LLVMIsAInstruction(Inst))
failwith("Not an instruction");
o = LLVMGetInstructionOpcode(Inst);
- assert (o <= LLVMLandingPad);
+ assert (o <= LLVMCatchSwitch);
return Val_int(o);
}
Index: llvm/trunk/bindings/ocaml/llvm/llvm.ml
===================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.ml
+++ llvm/trunk/bindings/ocaml/llvm/llvm.ml
@@ -238,6 +238,12 @@
| AtomicRMW
| Resume
| LandingPad
+ | AddrSpaceCast
+ | CleanupRet
+ | CatchRet
+ | CatchPad
+ | CleanupPad
+ | CatchSwitch
end
module LandingPadClauseTy = struct
Index: llvm/trunk/bindings/ocaml/llvm/llvm.mli
===================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.mli
+++ llvm/trunk/bindings/ocaml/llvm/llvm.mli
@@ -260,6 +260,12 @@
| AtomicRMW
| Resume
| LandingPad
+ | AddrSpaceCast
+ | CleanupRet
+ | CatchRet
+ | CatchPad
+ | CleanupPad
+ | CatchSwitch
end
(** The type of a clause of a [landingpad] instruction.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52196.165847.patch
Type: text/x-patch
Size: 1273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180918/36c21e7e/attachment.bin>
More information about the llvm-commits
mailing list