summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 20fd4ec)
raw | patch | inline | side by side (parent: 20fd4ec)
author | David Greene <greened@obbligato.org> | |
Fri, 13 Nov 2009 14:42:06 +0000 (14:42 +0000) | ||
committer | David Greene <greened@obbligato.org> | |
Fri, 13 Nov 2009 14:42:06 +0000 (14:42 +0000) |
include/llvm/CodeGen/MachineFrameInfo.h | patch | blob | history |
index 3dcdc793b29aa7ef321864c3e7c3ce8ff5c7da09..bed82af81c1438339a7015cdad1f1fd4aef7832f 100644 (file)
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;
}
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;
}
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 {