1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

track local frame size in MFI, not local to the pass, since PEI needs it.

llvm-svn: 111164
This commit is contained in:
Jim Grosbach 2010-08-16 18:06:15 +00:00
parent cc19893826
commit 33f86ffe9f
2 changed files with 4 additions and 4 deletions

View File

@ -296,6 +296,9 @@ public:
/// blob.
int64_t getLocalFrameBaseOffset() const { return LocalFrameBaseOffset; }
/// setLocalFrameSize - Set the size of the local object blob.
void setLocalFrameSize(int64_t sz) { LocalFrameSize = sz; }
/// getLocalFrameSize - Get the size of the local object blob.
int64_t getLocalFrameSize() const { return LocalFrameSize; }

View File

@ -40,8 +40,6 @@ STATISTIC(NumAllocations, "Number of frame indices processed");
namespace {
class LocalStackSlotPass: public MachineFunctionPass {
int64_t LocalStackSize;
void calculateFrameObjectOffsets(MachineFunction &Fn);
public:
static char ID; // Pass identification, replacement for typeid
@ -68,7 +66,6 @@ FunctionPass *llvm::createLocalStackSlotAllocationPass() {
bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) {
calculateFrameObjectOffsets(MF);
DEBUG(dbgs() << LocalStackSize << " bytes of local storage pre-allocated\n");
return true;
}
@ -165,5 +162,5 @@ void LocalStackSlotPass::calculateFrameObjectOffsets(MachineFunction &Fn) {
}
// Remember how big this blob of stack space is
LocalStackSize = Offset;
MFI->setLocalFrameSize(Offset);
}