Customizing PEI::calculateFrameObjectOffsets()

I would like a customized version of the function
PEI::calculateFrameObjectOffsets() in PrologEpilogInserter.cpp.
What is the clean way to do this?