aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2023-11-15 08:49:11 +0000
committerMichael Buch <michaelbuch12@gmail.com>2023-11-15 08:50:16 +0000
commit8e8bad70e6db0b04198c025bef9acccfd06f36f0 (patch)
treeffb092be0dd1ee4016d6f1d6a92deadfea1df673 /llvm/lib/IR/DIBuilder.cpp
parent89361007aa8a44d68f2620570fd4efcc8757f3bb (diff)
downloadllvm-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/DIBuilder.cpp')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index 58a7e07..1ce8c17 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -405,11 +405,12 @@ DIDerivedType *
DIBuilder::createStaticMemberType(DIScope *Scope, StringRef Name, DIFile *File,
unsigned LineNumber, DIType *Ty,
DINode::DIFlags Flags, llvm::Constant *Val,
- unsigned Tag, uint32_t AlignInBits) {
+ uint32_t AlignInBits) {
Flags |= DINode::FlagStaticMember;
- return DIDerivedType::get(VMContext, Tag, Name, File, LineNumber,
- getNonCompileUnitScope(Scope), Ty, 0, AlignInBits,
- 0, std::nullopt, Flags, getConstantOrNull(Val));
+ return DIDerivedType::get(VMContext, dwarf::DW_TAG_member, Name, File,
+ LineNumber, getNonCompileUnitScope(Scope), Ty, 0,
+ AlignInBits, 0, std::nullopt, Flags,
+ getConstantOrNull(Val));
}
DIDerivedType *