mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[Alignment][NFC] Migrate MachineFrameInfo::CreateSpillStackObject to Align
iThis patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Differential Revision: https://reviews.llvm.org/D82934
This commit is contained in:
parent
dd087b6361
commit
930fdcd491
@ -768,8 +768,9 @@ public:
|
||||
/// Create a new statically sized stack object that represents a spill slot,
|
||||
/// returning a nonnegative identifier to represent it.
|
||||
int CreateSpillStackObject(uint64_t Size, Align Alignment);
|
||||
/// FIXME: Remove this function when transition to Align is over.
|
||||
inline int CreateSpillStackObject(uint64_t Size, unsigned Alignment) {
|
||||
LLVM_ATTRIBUTE_DEPRECATED(
|
||||
inline int CreateSpillStackObject(uint64_t Size, unsigned Alignment),
|
||||
"Use CreateSpillStackObject that takes an Align instead") {
|
||||
return CreateSpillStackObject(Size, assumeAligned(Alignment));
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ public:
|
||||
}
|
||||
return FI;
|
||||
}
|
||||
int FI = MFI.CreateSpillStackObject(Size, Size);
|
||||
int FI = MFI.CreateSpillStackObject(Size, Align(Size));
|
||||
NumSpillSlotsAllocated++;
|
||||
Line.Slots.push_back(FI);
|
||||
++Line.Index;
|
||||
|
Loading…
Reference in New Issue
Block a user