Skip to content

[OCaml] Make OCaml MetadataKind type consistent with C API #134507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ module MetadataKind = struct
| DIArgListMetadataKind
| DIAssignIDMetadataKind
| DISubrangeTypeMetadataKind
| DIFixedPointTypeMetadataKind
end

(** The amount of debug information to emit. *)
Expand Down
1 change: 1 addition & 0 deletions llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ module MetadataKind : sig
| DIArgListMetadataKind
| DIAssignIDMetadataKind
| DISubrangeTypeMetadataKind
| DIFixedPointTypeMetadataKind
end

(** The amount of debug information to emit. *)
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm-c/DebugInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ enum {
LLVMDISubrangeMetadataKind,
LLVMDIEnumeratorMetadataKind,
LLVMDIBasicTypeMetadataKind,
LLVMDIFixedPointTypeMetadataKind,
LLVMDIDerivedTypeMetadataKind,
LLVMDICompositeTypeMetadataKind,
LLVMDISubroutineTypeMetadataKind,
Expand All @@ -199,6 +198,7 @@ enum {
LLVMDIArgListMetadataKind,
LLVMDIAssignIDMetadataKind,
LLVMDISubrangeTypeMetadataKind,
LLVMDIFixedPointTypeMetadataKind,
};
typedef unsigned LLVMMetadataKind;

Expand Down
1 change: 1 addition & 0 deletions llvm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ if(TARGET ocaml_llvm)
ocaml_llvm_analysis
ocaml_llvm_bitreader
ocaml_llvm_bitwriter
ocaml_llvm_debuginfo
ocaml_llvm_executionengine
ocaml_llvm_irreader
ocaml_llvm_linker
Expand Down
Loading