diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-02-24 22:18:01 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-02-24 22:18:01 +0000 |
| commit | 8025e7b1b910e8f6bd22869472af77cca5e6f2fd (patch) | |
| tree | dd9685884bab514c6b2dd9684f921840d950b8a2 /clang/lib/CodeGen | |
| parent | ba8ac74fd9b64be0d7eee91a73301cd10aac9be6 (diff) | |
| download | bcm5719-llvm-8025e7b1b910e8f6bd22869472af77cca5e6f2fd.tar.gz bcm5719-llvm-8025e7b1b910e8f6bd22869472af77cca5e6f2fd.zip | |
Make ComputeThisAdjustmentBaseOffset public for now.
llvm-svn: 97066
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGVtable.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index 61dd11e4901..f0a95b92da6 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/lib/CodeGen/CGVtable.cpp @@ -144,17 +144,18 @@ private: const CXXMethodDecl *NewMD, SubobjectOffsetsMapTy &Offsets); - /// ComputeThisAdjustmentBaseOffset - Compute the base offset for adjusting - /// the 'this' pointer from the base subobject to the derived subobject. - BaseOffset ComputeThisAdjustmentBaseOffset(BaseSubobject Base, - BaseSubobject Derived); - static void MergeSubobjectOffsets(const SubobjectOffsetsMapTy &NewOffsets, SubobjectOffsetsMapTy &Offsets); public: explicit FinalOverriders(const CXXRecordDecl *MostDerivedClass); - + + /// ComputeThisAdjustmentBaseOffset - Compute the base offset for adjusting + /// the 'this' pointer from the base subobject to the derived subobject. + /// FIXME: This should move to VtableBuilder. + BaseOffset ComputeThisAdjustmentBaseOffset(BaseSubobject Base, + BaseSubobject Derived) const; + /// getOverrider - Get the final overrider for the given method declaration in /// the given base subobject. OverriderInfo getOverrider(BaseSubobject Base, @@ -357,7 +358,7 @@ ComputeReturnAdjustmentBaseOffset(ASTContext &Context, BaseOffset FinalOverriders::ComputeThisAdjustmentBaseOffset(BaseSubobject Base, - BaseSubobject Derived) { + BaseSubobject Derived) const { const CXXRecordDecl *BaseRD = Base.getBase(); const CXXRecordDecl *DerivedRD = Derived.getBase(); |

