Remove unused parameter to FinalOverriders::PropagateOverrider.

llvm-svn: 105171
This commit is contained in:
Anders Carlsson 2010-05-30 18:23:41 +00:00
parent 6cbc3f7de4
commit 107b4e096c
1 changed files with 3 additions and 5 deletions

View File

@ -151,7 +151,6 @@ private:
/// and we want to override B::f with C::f, we also need to override A::f with
/// C::f.
void PropagateOverrider(const CXXMethodDecl *OldMD,
BaseSubobject NewBase,
uint64_t OverriderOffsetInLayoutClass,
const CXXMethodDecl *NewMD,
SubobjectOffsetsMapTy &Offsets);
@ -243,7 +242,7 @@ void FinalOverriders::AddOverriders(BaseSubobject Base,
continue;
// First, propagate the overrider.
PropagateOverrider(MD, Base, OffsetInLayoutClass, MD, Offsets);
PropagateOverrider(MD, OffsetInLayoutClass, MD, Offsets);
// Add the overrider as the final overrider of itself.
OverriderInfo& Overrider = OverridersMap[std::make_pair(Base, MD)];
@ -366,7 +365,6 @@ ComputeReturnAdjustmentBaseOffset(ASTContext &Context,
}
void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD,
BaseSubobject NewBase,
uint64_t OverriderOffsetInLayoutClass,
const CXXMethodDecl *NewMD,
SubobjectOffsetsMapTy &Offsets) {
@ -415,8 +413,8 @@ void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD,
Overrider.Method = NewMD;
// And propagate it further.
PropagateOverrider(OverriddenMD, NewBase, OverriderOffsetInLayoutClass,
NewMD, Offsets);
PropagateOverrider(OverriddenMD, OverriderOffsetInLayoutClass, NewMD,
Offsets);
}
}
}