[PATCH] D103910: [llvm] Sync DebugInfo.h with DebugInfoFlags.def

Jan Kratochvil via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 9 07:04:15 PDT 2021


jankratochvil updated this revision to Diff 350887.
jankratochvil added a comment.

@jberdine I had to update the OCaml bindings as otherwise a buildbot failed.

  /b/1/openmp-clang-x86_64-linux-debian/llvm.build/bindings/ocaml/debuginfo/debuginfo_ocaml.c: In function ‘map_DIFlag’:
  /b/1/openmp-clang-x86_64-linux-debian/llvm.build/bindings/ocaml/debuginfo/debuginfo_ocaml.c:104:12: error: ‘LLVMDIFlagReserved’ undeclared (first use in this function); did you mean
  ‘i_DIFlagReserved’?
       return LLVMDIFlagReserved;
              ^~~~~~~~~~~~~~~~~~
              i_DIFlagReserved

I have fixed it based on a local build with OCaml (Fedora 34 x86_64). This is not a full OCaml sync with llvm/include/llvm/IR/DebugInfoFlags.def <https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/IR/DebugInfoFlags.def>, just the part required to sync llvm/include/llvm-c/DebugInfo.h <https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm-c/DebugInfo.h>.
@jberdine Are you fine with this change?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103910/new/

https://reviews.llvm.org/D103910

Files:
  llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c
  llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
  llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
  llvm/include/llvm-c/DebugInfo.h


Index: llvm/include/llvm-c/DebugInfo.h
===================================================================
--- llvm/include/llvm-c/DebugInfo.h
+++ llvm/include/llvm-c/DebugInfo.h
@@ -42,7 +42,7 @@
   LLVMDIFlagStaticMember = 1 << 12,
   LLVMDIFlagLValueReference = 1 << 13,
   LLVMDIFlagRValueReference = 1 << 14,
-  LLVMDIFlagReserved = 1 << 15,
+  LLVMDIFlagExportSymbols = 1 << 15,
   LLVMDIFlagSingleInheritance = 1 << 16,
   LLVMDIFlagMultipleInheritance = 2 << 16,
   LLVMDIFlagVirtualInheritance = 3 << 16,
@@ -57,6 +57,7 @@
   LLVMDIFlagNonTrivial = 1 << 26,
   LLVMDIFlagBigEndian = 1 << 27,
   LLVMDIFlagLittleEndian = 1 << 28,
+  LLVMDIFlagAllCallsDescribed = 1 << 29,
   LLVMDIFlagIndirectVirtualBase = (1 << 2) | (1 << 5),
   LLVMDIFlagAccessibility = LLVMDIFlagPrivate | LLVMDIFlagProtected |
                             LLVMDIFlagPublic,
Index: llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
===================================================================
--- llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
+++ llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
@@ -76,7 +76,7 @@
     | StaticMember
     | LValueReference
     | RValueReference
-    | Reserved
+    | ExportSymbols
     | SingleInheritance
     | MultipleInheritance
     | VirtualInheritance
Index: llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
===================================================================
--- llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
+++ llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
@@ -76,7 +76,7 @@
     | StaticMember
     | LValueReference
     | RValueReference
-    | Reserved
+    | ExportSymbols
     | SingleInheritance
     | MultipleInheritance
     | VirtualInheritance
Index: llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c
===================================================================
--- llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c
+++ llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c
@@ -44,7 +44,7 @@
   i_DIFlagStaticMember,
   i_DIFlagLValueReference,
   i_DIFlagRValueReference,
-  i_DIFlagReserved,
+  i_DIFlagExportSymbols,
   i_DIFlagSingleInheritance,
   i_DIFlagMultipleInheritance,
   i_DIFlagVirtualInheritance,
@@ -100,8 +100,8 @@
     return LLVMDIFlagLValueReference;
   case i_DIFlagRValueReference:
     return LLVMDIFlagRValueReference;
-  case i_DIFlagReserved:
-    return LLVMDIFlagReserved;
+  case i_DIFlagExportSymbols:
+    return LLVMDIFlagExportSymbols;
   case i_DIFlagSingleInheritance:
     return LLVMDIFlagSingleInheritance;
   case i_DIFlagMultipleInheritance:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103910.350887.patch
Type: text/x-patch
Size: 2545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210609/0d76b5f3/attachment.bin>


More information about the llvm-commits mailing list