[PATCH] D122502: [Clang] Add helper method to determine if a nonvirtual base has an entry in the LLVM struct
William Moses via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 13:32:31 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG89525cbf283f: [Clang] Add helper method to determine if a nonvirtual base has an entry in theā¦ (authored by wsmoses).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122502/new/
https://reviews.llvm.org/D122502
Files:
clang/lib/CodeGen/CGRecordLayout.h
Index: clang/lib/CodeGen/CGRecordLayout.h
===================================================================
--- clang/lib/CodeGen/CGRecordLayout.h
+++ clang/lib/CodeGen/CGRecordLayout.h
@@ -200,6 +200,12 @@
return FieldInfo.lookup(FD);
}
+ // Return whether the following non virtual base has a corresponding
+ // entry in the LLVM struct.
+ bool hasNonVirtualBaseLLVMField(const CXXRecordDecl *RD) const {
+ return NonVirtualBases.count(RD);
+ }
+
unsigned getNonVirtualBaseLLVMFieldNo(const CXXRecordDecl *RD) const {
assert(NonVirtualBases.count(RD) && "Invalid non-virtual base!");
return NonVirtualBases.lookup(RD);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122502.418314.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220325/de155868/attachment.bin>
More information about the cfe-commits
mailing list