mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Remove duplicate APIs and state WRT spill objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20fd4ec8c5
commit
0d1680a7d8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user