Eliminate unneccesary file

llvm-svn: 5191
This commit is contained in:
Chris Lattner 2002-12-28 20:34:47 +00:00
parent d2577010d5
commit 0ccedc254c
1 changed files with 0 additions and 42 deletions

View File

@ -1,42 +0,0 @@
//===-- MachineFrameInfo.cpp-----------------------------------------------===//
//
// Interface to layout of stack frame on target machine. Most functions of
// class MachineFrameInfo have to be machine-specific so there is little code
// here.
//
//===----------------------------------------------------------------------===//
#include "llvm/Target/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
int
MachineFrameInfo::getIncomingArgOffset(MachineFunction& mcInfo,
unsigned argNum) const
{
assert(argsOnStackHaveFixedSize());
unsigned relativeOffset = argNum * getSizeOfEachArgOnStack();
bool growUp; // do args grow up or down
int firstArg = getFirstIncomingArgOffset(mcInfo, growUp);
int offset = growUp? firstArg + relativeOffset
: firstArg - relativeOffset;
return offset;
}
int
MachineFrameInfo::getOutgoingArgOffset(MachineFunction& mcInfo,
unsigned argNum) const
{
assert(argsOnStackHaveFixedSize());
assert(((int) argNum - this->getNumFixedOutgoingArgs())
<= (int) mcInfo.getMaxOptionalNumArgs());
unsigned relativeOffset = argNum * getSizeOfEachArgOnStack();
bool growUp; // do args grow up or down
int firstArg = getFirstOutgoingArgOffset(mcInfo, growUp);
int offset = growUp? firstArg + relativeOffset
: firstArg - relativeOffset;
return offset;
}