Summary:
This diff adds minimal support for the recent FNeg and CallBr
instructions to the OCaml bindings.
Reviewers: whitequark
Reviewed By: whitequark
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60680
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358501
91177308-0d34-0410-b5e6-
96231b3b80d8
| CatchPad
| CleanupPad
| CatchSwitch
+ | FNeg
+ | CallBr
end
module LandingPadClauseTy = struct
| CatchPad
| CleanupPad
| CatchSwitch
+ | FNeg
+ | CallBr
end
(** The type of a clause of a [landingpad] instruction.
if (!LLVMIsAInstruction(Inst))
failwith("Not an instruction");
o = LLVMGetInstructionOpcode(Inst);
- assert (o <= LLVMCatchSwitch);
+ assert (o <= LLVMCallBr);
return Val_int(o);
}