diff options
author | Anders Carlsson <andersca@mac.com> | 2010-03-23 04:11:45 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-03-23 04:11:45 +0000 |
commit | af4403545a50a60d208e6fcae057308d576a92e0 (patch) | |
tree | 2ab60258aabcd978bd6e9fc1bf2095930f939511 /lib/CodeGen/CGCXX.cpp | |
parent | c263704cb007eb95b79f37b12a8092c47146d452 (diff) |
Rename CGVtableInfo to CodeGenVTables in preparation of adding another VTableInfo class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index b88001c81e..f788f62f6f 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -489,10 +489,10 @@ CodeGenModule::GetAddrOfCovariantThunk(GlobalDecl GD, } void CodeGenModule::BuildThunksForVirtual(GlobalDecl GD) { - CGVtableInfo::AdjustmentVectorTy *AdjPtr = getVtableInfo().getAdjustments(GD); + CodeGenVTables::AdjustmentVectorTy *AdjPtr = getVTables().getAdjustments(GD); if (!AdjPtr) return; - CGVtableInfo::AdjustmentVectorTy &Adj = *AdjPtr; + CodeGenVTables::AdjustmentVectorTy &Adj = *AdjPtr; const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); for (unsigned i = 0; i < Adj.size(); i++) { GlobalDecl OGD = Adj[i].first; @@ -618,17 +618,17 @@ llvm::Value * CodeGenFunction::BuildVirtualCall(const CXXMethodDecl *MD, llvm::Value *This, const llvm::Type *Ty) { MD = MD->getCanonicalDecl(); - uint64_t VtableIndex = CGM.getVtableInfo().getMethodVtableIndex(MD); + uint64_t VTableIndex = CGM.getVTables().getMethodVtableIndex(MD); - return ::BuildVirtualCall(*this, VtableIndex, This, Ty); + return ::BuildVirtualCall(*this, VTableIndex, This, Ty); } llvm::Value * CodeGenFunction::BuildVirtualCall(const CXXDestructorDecl *DD, CXXDtorType Type, llvm::Value *&This, const llvm::Type *Ty) { DD = cast<CXXDestructorDecl>(DD->getCanonicalDecl()); - uint64_t VtableIndex = - CGM.getVtableInfo().getMethodVtableIndex(GlobalDecl(DD, Type)); + uint64_t VTableIndex = + CGM.getVTables().getMethodVtableIndex(GlobalDecl(DD, Type)); - return ::BuildVirtualCall(*this, VtableIndex, This, Ty); + return ::BuildVirtualCall(*this, VTableIndex, This, Ty); } |