diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-04-14 00:29:55 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-04-14 00:29:55 +0000 |
commit | e1d7b3bd4c2f9d0866ca7eaa4178a0c06815b607 (patch) | |
tree | ea67348cc716a5327ba1666acb370b021b7fdd5f /include/clang/AST/DeclCXX.h | |
parent | 9f73022a9bfeb114f7067119884357ca826f70ea (diff) |
[modules] Remove CXX_BASE_SPECIFIERS_OFFSETS table. Instead of storing an ID of
a table entry in the corresponding decl, store an offset from the current
record to the relevant CXX_BASE_SPECIFIERS record. This results in fewer
indirections and a minor .pcm file size reduction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclCXX.h')
-rw-r--r-- | include/clang/AST/DeclCXX.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 67ce84288f..8906d9c798 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -523,6 +523,13 @@ class CXXRecordDecl : public RecordDecl { return getVBasesSlowCase(); } + ArrayRef<CXXBaseSpecifier> bases() const { + return llvm::makeArrayRef(getBases(), NumBases); + } + ArrayRef<CXXBaseSpecifier> vbases() const { + return llvm::makeArrayRef(getVBases(), NumVBases); + } + private: CXXBaseSpecifier *getBasesSlowCase() const; CXXBaseSpecifier *getVBasesSlowCase() const; |