aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/MachineFrameInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-28 20:34:47 +0000
committerChris Lattner <sabre@nondot.org>2002-12-28 20:34:47 +0000
commit370e187aacd730f60ff81a386769d3b2022b0ad6 (patch)
tree3da35b36de5a9cf448435cb9abaf3d89daf75a69 /lib/Target/MachineFrameInfo.cpp
parent3ad764290179871ad00253e2b6e235596caa3db1 (diff)
Eliminate unneccesary file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MachineFrameInfo.cpp')
-rw-r--r--lib/Target/MachineFrameInfo.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/lib/Target/MachineFrameInfo.cpp b/lib/Target/MachineFrameInfo.cpp
deleted file mode 100644
index 4d2fab230e..0000000000
--- a/lib/Target/MachineFrameInfo.cpp
+++ /dev/null
@@ -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;
-}