[llvm-commits] [llvm] r87106 - /llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h

David Greene greened at obbligato.org
Fri Nov 13 06:42:06 PST 2009


Author: greened
Date: Fri Nov 13 08:42:06 2009
New Revision: 87106

URL: http://llvm.org/viewvc/llvm-project?rev=87106&view=rev
Log:

Remove duplicate APIs and state WRT spill objects.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h?rev=87106&r1=87105&r2=87106&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h Fri Nov 13 08:42:06 2009
@@ -389,9 +389,6 @@
     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 @@
   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 @@
     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 {





More information about the llvm-commits mailing list