[PATCH] D52197: [OCaml] Add Token type to kind enum in OCaml API
Josh Berdine via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 16:31:52 PDT 2018
jberdine created this revision.
jberdine added a reviewer: whitequark.
Herald added a subscriber: llvm-commits.
The token type has not yet been added to the OCaml API. This
patch only extends the enum, so that e.g. classify_type will not
crash. No support for manipulating or building tokens is added at this
point.
Repository:
rL LLVM
https://reviews.llvm.org/D52197
Files:
bindings/ocaml/llvm/llvm.ml
bindings/ocaml/llvm/llvm.mli
Index: bindings/ocaml/llvm/llvm.mli
===================================================================
--- bindings/ocaml/llvm/llvm.mli
+++ bindings/ocaml/llvm/llvm.mli
@@ -77,6 +77,7 @@
| Vector
| Metadata
| X86_mmx
+ | Token
end
(** The linkage of a global value, accessed with {!linkage} and
Index: bindings/ocaml/llvm/llvm.ml
===================================================================
--- bindings/ocaml/llvm/llvm.ml
+++ bindings/ocaml/llvm/llvm.ml
@@ -42,6 +42,7 @@
| Vector
| Metadata
| X86_mmx
+ | Token
end
module Linkage = struct
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52197.165845.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180917/4349314a/attachment.bin>
More information about the llvm-commits
mailing list