Skip to content

Commit

Permalink
[OCaml] (PR16190) Add ValueKinds for ConstantDataSequential and subcl…
Browse files Browse the repository at this point in the history
…asses

Original patch by David Monniaux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194075 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
whitequark committed Nov 5, 2013
1 parent 0fac3df commit 34b4a84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/ocaml/llvm/llvm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ module ValueKind = struct
| BlockAddress
| ConstantAggregateZero
| ConstantArray
| ConstantDataArray
| ConstantDataVector
| ConstantExpr
| ConstantFP
| ConstantInt
Expand Down
2 changes: 2 additions & 0 deletions bindings/ocaml/llvm/llvm.mli
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ module ValueKind : sig
| BlockAddress
| ConstantAggregateZero
| ConstantArray
| ConstantDataArray
| ConstantDataVector
| ConstantExpr
| ConstantFP
| ConstantInt
Expand Down
4 changes: 4 additions & 0 deletions bindings/ocaml/llvm/llvm_ocaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ enum ValueKind {
BlockAddress,
ConstantAggregateZero,
ConstantArray,
ConstantDataArray,
ConstantDataVector,
ConstantExpr,
ConstantFP,
ConstantInt,
Expand All @@ -479,6 +481,8 @@ CAMLprim value llvm_classify_value(LLVMValueRef Val) {
DEFINE_CASE(Val, BlockAddress);
DEFINE_CASE(Val, ConstantAggregateZero);
DEFINE_CASE(Val, ConstantArray);
DEFINE_CASE(Val, ConstantDataArray);
DEFINE_CASE(Val, ConstantDataVector);
DEFINE_CASE(Val, ConstantExpr);
DEFINE_CASE(Val, ConstantFP);
DEFINE_CASE(Val, ConstantInt);
Expand Down

0 comments on commit 34b4a84

Please sign in to comment.