From 0d1680a7d886e2148f3d54c0095bf946544a741f Mon Sep 17 00:00:00 2001 From: David Greene Date: Fri, 13 Nov 2009 14:42:06 +0000 Subject: [PATCH 1/1] 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 --- include/llvm/CodeGen/MachineFrameInfo.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index 3dcdc793b29..bed82af81c1 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(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(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(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 &getCalleeSavedInfo() const { -- 2.34.1