[PATCH] D45124: [CodeGen] Record if a C++ record is a trivial type when emitting Codeview

Aaron Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 22:52:44 PDT 2018


asmith updated this revision to Diff 156664.

https://reviews.llvm.org/D45124

Files:
  lib/CodeGen/CGDebugInfo.cpp


Index: lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- lib/CodeGen/CGDebugInfo.cpp
+++ lib/CodeGen/CGDebugInfo.cpp
@@ -2847,6 +2847,10 @@
       Flags |= llvm::DINode::FlagTypePassByReference;
     else
       Flags |= llvm::DINode::FlagTypePassByValue;
+
+    // Record if a C++ record is trivial type.
+    if (CXXRD->isTrivial())
+      Flags |= llvm::DINode::FlagTrivial;
   }
 
   llvm::DICompositeType *RealDecl = DBuilder.createReplaceableCompositeType(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45124.156664.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180721/cf04f939/attachment.bin>


More information about the llvm-commits mailing list