[PATCH] D105604: Generate DW_TAG_class_type when calling DIBuilder::createClassType().

Koutheir Attouchi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 7 20:06:49 PDT 2021


koutheir created this revision.
koutheir added reviewers: bkramer, echristo, chandlerc, lattner.
Herald added subscribers: dexonsmith, hiraditya.
koutheir requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105604

Files:
  llvm/lib/IR/DIBuilder.cpp


Index: llvm/lib/IR/DIBuilder.cpp
===================================================================
--- llvm/lib/IR/DIBuilder.cpp
+++ llvm/lib/IR/DIBuilder.cpp
@@ -460,7 +460,7 @@
          "createClassType should be called with a valid Context");
 
   auto *R = DICompositeType::get(
-      VMContext, dwarf::DW_TAG_structure_type, Name, File, LineNumber,
+      VMContext, dwarf::DW_TAG_class_type, Name, File, LineNumber,
       getNonCompileUnitScope(Context), DerivedFrom, SizeInBits, AlignInBits,
       OffsetInBits, Flags, Elements, 0, VTableHolder,
       cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105604.357121.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210708/cceb1529/attachment.bin>


More information about the llvm-commits mailing list