mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-06 01:22:41 +00:00
[PrologEpilogInserter] Minor refactoring.
Differential Revision: http://reviews.llvm.org/D12924 llvm-svn: 248084
This commit is contained in:
parent
d5556e34e4
commit
0510cd5161
@ -516,7 +516,7 @@ AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx,
|
|||||||
MaxAlign = std::max(MaxAlign, Align);
|
MaxAlign = std::max(MaxAlign, Align);
|
||||||
|
|
||||||
// Adjust to alignment boundary.
|
// Adjust to alignment boundary.
|
||||||
Offset = (Offset + Align - 1) / Align * Align;
|
Offset = RoundUpToAlignment(Offset, Align);
|
||||||
|
|
||||||
if (StackGrowsDown) {
|
if (StackGrowsDown) {
|
||||||
DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset << "]\n");
|
DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset << "]\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user