Remove duplicate APIs and state WRT spill objects.
authorDavid Greene <greened@obbligato.org>
Fri, 13 Nov 2009 14:42:06 +0000 (14:42 +0000)
committerDavid Greene <greened@obbligato.org>
Fri, 13 Nov 2009 14:42:06 +0000 (14:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87106 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFrameInfo.h

index 3dcdc793b29aa7ef321864c3e7c3ce8ff5c7da09..bed82af81c1438339a7015cdad1f1fd4aef7832f 100644 (file)
@@ -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 {