Remove OldOffset.

llvm-svn: 98331
This commit is contained in:
Anders Carlsson 2010-03-12 05:02:01 +00:00
parent 2b2b8f1949
commit 3c289673d6
1 changed files with 2 additions and 7 deletions

View File

@ -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));