[llvm-commits] [llvm] r87106 - /llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
Evan Cheng
evan.cheng at apple.com
Fri Nov 13 10:49:01 PST 2009
Thanks.
Evan
On Nov 13, 2009, at 6:42 AM, David Greene wrote:
> 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 {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list