diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-11 22:03:57 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-11 22:03:57 +0000 |
commit | 9123284640b33e902c23aac15cb7f547ca1ff71f (patch) | |
tree | ee8ffcd5fbd594747ace357d844b00150a9ef55d /lib/CodeGen/CGVTables.cpp | |
parent | 1ee6cad59f017601ea54fbb4f62a6e8d69897e3e (diff) |
Rename a function parameter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | lib/CodeGen/CGVTables.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/CodeGen/CGVTables.cpp b/lib/CodeGen/CGVTables.cpp index 0d9c3ad4ae..210b0e50ba 100644 --- a/lib/CodeGen/CGVTables.cpp +++ b/lib/CodeGen/CGVTables.cpp @@ -1246,8 +1246,11 @@ private: /// LayoutPrimaryAndSecondaryVtables - Layout the primary vtable for the /// given base subobject, as well as all its secondary vtables. + /// + /// \param BaseIsVirtualInLayoutClass - Whether the base subobject is virtual + /// in the layout class. void LayoutPrimaryAndSecondaryVtables(BaseSubobject Base, - bool BaseIsVirtual, + bool BaseIsVirtualInLayoutClass, uint64_t OffsetInLayoutClass); /// LayoutSecondaryVtables - Layout the secondary vtables for the given base @@ -1851,17 +1854,18 @@ void VTableBuilder::LayoutVtable() { void VTableBuilder::LayoutPrimaryAndSecondaryVtables(BaseSubobject Base, - bool BaseIsVirtual, + bool BaseIsVirtualInLayoutClass, uint64_t OffsetInLayoutClass) { assert(Base.getBase()->isDynamicClass() && "class does not have a vtable!"); // Add vcall and vbase offsets for this vtable. VCallAndVBaseOffsetBuilder Builder(MostDerivedClass, LayoutClass, &Overriders, - Base, BaseIsVirtual, OffsetInLayoutClass); + Base, BaseIsVirtualInLayoutClass, + OffsetInLayoutClass); Components.append(Builder.components_begin(), Builder.components_end()); // Check if we need to add these vcall offsets. - if (BaseIsVirtual && !Builder.getVCallOffsets().empty()) { + if (BaseIsVirtualInLayoutClass && !Builder.getVCallOffsets().empty()) { VCallOffsetMap &VCallOffsets = VCallOffsetsForVBases[Base.getBase()]; if (VCallOffsets.empty()) @@ -1920,7 +1924,7 @@ VTableBuilder::LayoutPrimaryAndSecondaryVtables(BaseSubobject Base, RD = PrimaryBase; } - bool BaseIsMorallyVirtual = BaseIsVirtual; + bool BaseIsMorallyVirtual = BaseIsVirtualInLayoutClass; if (isBuildingConstructorVtable() && Base.getBase() == MostDerivedClass) BaseIsMorallyVirtual = false; @@ -1979,7 +1983,7 @@ void VTableBuilder::LayoutSecondaryVtables(BaseSubobject Base, // Layout the primary vtable (and any secondary vtables) for this base. LayoutPrimaryAndSecondaryVtables(BaseSubobject(BaseDecl, BaseOffset), - /*BaseIsVirtual=*/false, + /*BaseIsVirtualInLayoutClass=*/false, BaseOffsetInLayoutClass); } } |