aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>2022-12-21 03:38:47 -0500
committerJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>2022-12-21 04:00:40 -0500
commit1118ee04fc7c09bb54128bcaef4bd82835dcbafd (patch)
tree31ac83597c0977726473473864788e58f87b57d8 /clang/lib/CodeGen/CGDebugInfo.cpp
parent13417808474cacc064b90726705862a650c0b28a (diff)
downloadllvm-1118ee04fc7c09bb54128bcaef4bd82835dcbafd.zip
llvm-1118ee04fc7c09bb54128bcaef4bd82835dcbafd.tar.gz
llvm-1118ee04fc7c09bb54128bcaef4bd82835dcbafd.tar.bz2
[Clang][CGDebugInfo][ObjC] Mark objc bitfields with the DIFlagBitfield flag
Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D140195
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 4d1b0b6..576a97b 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -2930,6 +2930,9 @@ llvm::DIType *CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty,
else if (Field->getAccessControl() == ObjCIvarDecl::Public)
Flags = llvm::DINode::FlagPublic;
+ if (Field->isBitField())
+ Flags |= llvm::DINode::FlagBitField;
+
llvm::MDNode *PropertyNode = nullptr;
if (ObjCImplementationDecl *ImpD = ID->getImplementation()) {
if (ObjCPropertyImplDecl *PImpD =