[llvm] r342428 - [OCaml] Add Token type to kind enum in OCaml API
whitequark via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 17:01:02 PDT 2018
Author: whitequark
Date: Mon Sep 17 17:01:01 2018
New Revision: 342428
URL: http://llvm.org/viewvc/llvm-project?rev=342428&view=rev
Log:
[OCaml] Add Token type to kind enum in OCaml API
Summary:
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.
Reviewers: whitequark
Reviewed By: whitequark
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D52197
Modified:
llvm/trunk/bindings/ocaml/llvm/llvm.ml
llvm/trunk/bindings/ocaml/llvm/llvm.mli
Modified: llvm/trunk/bindings/ocaml/llvm/llvm.ml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/llvm.ml?rev=342428&r1=342427&r2=342428&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.ml (original)
+++ llvm/trunk/bindings/ocaml/llvm/llvm.ml Mon Sep 17 17:01:01 2018
@@ -42,6 +42,7 @@ module TypeKind = struct
| Vector
| Metadata
| X86_mmx
+ | Token
end
module Linkage = struct
Modified: llvm/trunk/bindings/ocaml/llvm/llvm.mli
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/llvm.mli?rev=342428&r1=342427&r2=342428&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.mli (original)
+++ llvm/trunk/bindings/ocaml/llvm/llvm.mli Mon Sep 17 17:01:01 2018
@@ -77,6 +77,7 @@ module TypeKind : sig
| Vector
| Metadata
| X86_mmx
+ | Token
end
(** The linkage of a global value, accessed with {!linkage} and
More information about the llvm-commits
mailing list