diff --git a/llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c b/llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c --- a/llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c +++ b/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: diff --git a/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml b/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml --- a/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml +++ b/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml @@ -76,7 +76,7 @@ | StaticMember | LValueReference | RValueReference - | Reserved + | ExportSymbols | SingleInheritance | MultipleInheritance | VirtualInheritance diff --git a/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli b/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli --- a/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli +++ b/llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli @@ -76,7 +76,7 @@ | StaticMember | LValueReference | RValueReference - | Reserved + | ExportSymbols | SingleInheritance | MultipleInheritance | VirtualInheritance diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h --- a/llvm/include/llvm-c/DebugInfo.h +++ b/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, diff --git a/llvm/include/llvm/IR/DebugInfoFlags.def b/llvm/include/llvm/IR/DebugInfoFlags.def --- a/llvm/include/llvm/IR/DebugInfoFlags.def +++ b/llvm/include/llvm/IR/DebugInfoFlags.def @@ -23,6 +23,11 @@ #endif // General flags kept in DINode. +// Keep it in sync these files: +// llvm/include/llvm-c/DebugInfo.h +// llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c +// llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml +// llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli HANDLE_DI_FLAG(0, Zero) // Use it as zero value. // For example: void foo(DIFlags Flags = FlagZero).