From 3c289673d6ce7740c426b2fada774b143f9210bc Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 12 Mar 2010 05:02:01 +0000 Subject: [PATCH] Remove OldOffset. llvm-svn: 98331 --- clang/lib/CodeGen/CGVtable.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index 889cb0a0d7aa..81b41109e177 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/lib/CodeGen/CGVtable.cpp @@ -63,10 +63,7 @@ public: /// Offset - the base offset of the overrider in the layout class. uint64_t Offset; - /// OldOffset - FIXME: Remove this. - int64_t OldOffset; - - OverriderInfo() : Method(0), Offset(0), OldOffset(0) { } + OverriderInfo() : Method(0), Offset(0) { } }; private: @@ -251,7 +248,6 @@ void FinalOverriders::AddOverriders(BaseSubobject Base, OverriderInfo& Overrider = OverridersMap[std::make_pair(Base, MD)]; assert(!Overrider.Method && "Overrider should not exist yet!"); - Overrider.OldOffset = Base.getBaseOffset(); Overrider.Offset = OffsetInLayoutClass; Overrider.Method = MD; } @@ -415,7 +411,6 @@ void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD, // Set the new overrider. Overrider.Offset = OverriderOffsetInLayoutClass; - Overrider.OldOffset = NewBase.getBaseOffset(); Overrider.Method = NewMD; // And propagate it further. @@ -559,7 +554,7 @@ void FinalOverriders::dump(llvm::raw_ostream &Out, BaseSubobject Base) { Out << " " << MD->getQualifiedNameAsString() << " - ("; Out << Overrider.Method->getQualifiedNameAsString(); - Out << ", " << Overrider.OldOffset / 8 << ", " << Overrider.Offset / 8 << ')'; + Out << ", " << ", " << Overrider.Offset / 8 << ')'; AdjustmentOffsetsMapTy::const_iterator AI = ReturnAdjustments.find(std::make_pair(Base, MD));