forked from OSchip/llvm-project
Remove duplicate APIs and state WRT spill objects.
llvm-svn: 87106
This commit is contained in:
parent
566eeb2da5
commit
a32c214b23
|
@ -389,9 +389,6 @@ public:
|
||||||
Objects.push_back(StackObject(Size, Alignment, 0, false, isSS));
|
Objects.push_back(StackObject(Size, Alignment, 0, false, isSS));
|
||||||
int Index = (int)Objects.size()-NumFixedObjects-1;
|
int Index = (int)Objects.size()-NumFixedObjects-1;
|
||||||
assert(Index >= 0 && "Bad frame index!");
|
assert(Index >= 0 && "Bad frame index!");
|
||||||
if (SpillObjects.size() <= static_cast<unsigned>(Index))
|
|
||||||
SpillObjects.resize(Index+1);
|
|
||||||
SpillObjects[Index] = false;
|
|
||||||
return Index;
|
return Index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -402,9 +399,6 @@ public:
|
||||||
int CreateSpillStackObject(uint64_t Size, unsigned Alignment) {
|
int CreateSpillStackObject(uint64_t Size, unsigned Alignment) {
|
||||||
CreateStackObject(Size, Alignment, true);
|
CreateStackObject(Size, Alignment, true);
|
||||||
int Index = (int)Objects.size()-NumFixedObjects-1;
|
int Index = (int)Objects.size()-NumFixedObjects-1;
|
||||||
if (SpillObjects.size() <= static_cast<unsigned>(Index))
|
|
||||||
SpillObjects.resize(Index+1);
|
|
||||||
SpillObjects[Index] = true;
|
|
||||||
return Index;
|
return Index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -426,16 +420,6 @@ public:
|
||||||
return (int)Objects.size()-NumFixedObjects-1;
|
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
|
/// getCalleeSavedInfo - Returns a reference to call saved info vector for the
|
||||||
/// current function.
|
/// current function.
|
||||||
const std::vector<CalleeSavedInfo> &getCalleeSavedInfo() const {
|
const std::vector<CalleeSavedInfo> &getCalleeSavedInfo() const {
|
||||||
|
|
Loading…
Reference in New Issue