aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFrameInfo.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-11-13 14:42:06 +0000
committerDavid Greene <greened@obbligato.org>2009-11-13 14:42:06 +0000
commit0d1680a7d886e2148f3d54c0095bf946544a741f (patch)
treebc88a8b45d5465722f1eb387392404d94cc7673f /include/llvm/CodeGen/MachineFrameInfo.h
parent20fd4ec8c5cd3a3ec1f3258458a8899c4896ece2 (diff)
Remove duplicate APIs and state WRT spill objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 3dcdc793b2..bed82af81c 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -389,9 +389,6 @@ public:
Objects.push_back(StackObject(Size, Alignment, 0, false, isSS));
int Index = (int)Objects.size()-NumFixedObjects-1;
assert(Index >= 0 && "Bad frame index!");
- if (SpillObjects.size() <= static_cast<unsigned>(Index))
- SpillObjects.resize(Index+1);
- SpillObjects[Index] = false;
return Index;
}
@@ -402,9 +399,6 @@ public:
int CreateSpillStackObject(uint64_t Size, unsigned Alignment) {
CreateStackObject(Size, Alignment, true);
int Index = (int)Objects.size()-NumFixedObjects-1;
- if (SpillObjects.size() <= static_cast<unsigned>(Index))
- SpillObjects.resize(Index+1);
- SpillObjects[Index] = true;
return Index;
}
@@ -426,16 +420,6 @@ public:
return (int)Objects.size()-NumFixedObjects-1;
}
- /// isSpillObject - Return whether the index refers to a spill slot.
- ///
- bool isSpillObject(int Index) const {
- // Negative indices can't be spill slots.
- if (Index < 0) return false;
- assert(static_cast<unsigned>(Index) < SpillObjects.size() &&
- "Invalid frame index!");
- return SpillObjects[Index];
- }
-
/// getCalleeSavedInfo - Returns a reference to call saved info vector for the
/// current function.
const std::vector<CalleeSavedInfo> &getCalleeSavedInfo() const {