diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2023-11-15 08:49:11 +0000 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2023-11-15 08:50:16 +0000 |
commit | 8e8bad70e6db0b04198c025bef9acccfd06f36f0 (patch) | |
tree | ffb092be0dd1ee4016d6f1d6a92deadfea1df673 /llvm/lib/IR/DebugInfo.cpp | |
parent | 89361007aa8a44d68f2620570fd4efcc8757f3bb (diff) | |
download | llvm-8e8bad70e6db0b04198c025bef9acccfd06f36f0.zip llvm-8e8bad70e6db0b04198c025bef9acccfd06f36f0.tar.gz llvm-8e8bad70e6db0b04198c025bef9acccfd06f36f0.tar.bz2 |
Revert "[llvm][DebugInfo] DWARFv5: static data members declarations are DW_TAG_variable (#72234)"
This reverts commit 9a9933fae23249fbf6cf5b3c090e630f578b7f98.
The OCaml bindings were using `LLVMDIBuilderCreateStaticMemberType`,
causing the API change in `9a9933fae23249fbf6cf5b3c090e630f578b7f98`
to break buildbots that built the bindings. Revert until we figure out
whether to fixup the bindings or just not change the C-API
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 0f3590e..390a27c 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -1315,15 +1315,17 @@ LLVMDIBuilderCreateUnspecifiedType(LLVMDIBuilderRef Builder, const char *Name, return wrap(unwrap(Builder)->createUnspecifiedType({Name, NameLen})); } -LLVMMetadataRef LLVMDIBuilderCreateStaticMemberType( +LLVMMetadataRef +LLVMDIBuilderCreateStaticMemberType( LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, size_t NameLen, LLVMMetadataRef File, unsigned LineNumber, LLVMMetadataRef Type, LLVMDIFlags Flags, LLVMValueRef ConstantVal, - unsigned Tag, uint32_t AlignInBits) { + uint32_t AlignInBits) { return wrap(unwrap(Builder)->createStaticMemberType( - unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), - LineNumber, unwrapDI<DIType>(Type), map_from_llvmDIFlags(Flags), - unwrap<Constant>(ConstantVal), Tag, AlignInBits)); + unwrapDI<DIScope>(Scope), {Name, NameLen}, + unwrapDI<DIFile>(File), LineNumber, unwrapDI<DIType>(Type), + map_from_llvmDIFlags(Flags), unwrap<Constant>(ConstantVal), + AlignInBits)); } LLVMMetadataRef |