summaryrefslogtreecommitdiff
path: root/bindings/ocaml
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-05-30 05:06:04 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-05-30 05:06:04 +0000
commit7a0370f66ab5739f42ffe822f33494e0de9b182b (patch)
tree45b56951ca455c4f0fffdc0e55733b84608162ef /bindings/ocaml
parentc5ca713b8073d9fe95b258d0c01328d020df3357 (diff)
downloadllvm-7a0370f66ab5739f42ffe822f33494e0de9b182b.tar.gz
llvm-7a0370f66ab5739f42ffe822f33494e0de9b182b.tar.bz2
llvm-7a0370f66ab5739f42ffe822f33494e0de9b182b.tar.xz
Give embedded metadata its own type instead of relying on EmptyStructTy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml')
-rw-r--r--bindings/ocaml/llvm/llvm.ml2
-rw-r--r--bindings/ocaml/llvm/llvm.mli1
2 files changed, 3 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.ml b/bindings/ocaml/llvm/llvm.ml
index c8862b12d2..49975650a5 100644
--- a/bindings/ocaml/llvm/llvm.ml
+++ b/bindings/ocaml/llvm/llvm.ml
@@ -26,6 +26,7 @@ module TypeKind = struct
| Fp128
| Ppc_fp128
| Label
+ | Metadata
| Integer
| Function
| Struct
@@ -840,3 +841,4 @@ let rec string_of_lltype ty =
| TypeKind.Double -> "double"
| TypeKind.Float -> "float"
| TypeKind.Void -> "void"
+ | TypeKind.Metadata -> "metadata"
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index f7ca58ef92..35c218a752 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -61,6 +61,7 @@ module TypeKind : sig
| Fp128
| Ppc_fp128
| Label
+ | Metadata
| Integer
| Function
| Struct