diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h --- a/llvm/include/llvm/CodeGen/CallingConvLower.h +++ b/llvm/include/llvm/CodeGen/CallingConvLower.h @@ -433,22 +433,11 @@ return Result; } - // FIXME: Deprecate this function when transition to Align is over. - unsigned AllocateStack(unsigned Size, unsigned Alignment) { - return AllocateStack(Size, Align(Alignment)); - } - void ensureMaxAlignment(Align Alignment) { if (!AnalyzingMustTailForwardedRegs) MF.getFrameInfo().ensureMaxAlignment(Alignment); } - /// Version of AllocateStack with extra register to be shadowed. - unsigned AllocateStack(unsigned Size, unsigned Align, unsigned ShadowReg) { - MarkAllocated(ShadowReg); - return AllocateStack(Size, Align); - } - /// Version of AllocateStack with list of extra registers to be shadowed. /// Note that, unlike AllocateReg, this shadows ALL of the shadow registers. unsigned AllocateStack(unsigned Size, Align Alignment, diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -54,7 +54,7 @@ MF.getSubtarget().getTargetLowering()->HandleByVal(this, Size, Alignment.value()); Size = unsigned(alignTo(Size, MinAlign)); - unsigned Offset = AllocateStack(Size, Alignment.value()); + unsigned Offset = AllocateStack(Size, Alignment); addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo)); }