diff --git a/llvm/include/llvm/IR/DataLayout.h b/llvm/include/llvm/IR/DataLayout.h --- a/llvm/include/llvm/IR/DataLayout.h +++ b/llvm/include/llvm/IR/DataLayout.h @@ -514,16 +514,11 @@ return 8 * getTypeAllocSize(Ty); } - /// Returns the minimum ABI-required alignment for the specified type. - /// FIXME: Deprecate this function once migration to Align is over. - LLVM_DEPRECATED("use getABITypeAlign instead", "getABITypeAlign") - uint64_t getABITypeAlignment(Type *Ty) const; - /// Returns the minimum ABI-required alignment for the specified type. Align getABITypeAlign(Type *Ty) const; /// Helper function to return `Alignment` if it's set or the result of - /// `getABITypeAlignment(Ty)`, in any case the result is a valid alignment. + /// `getABITypeAlign(Ty)`, in any case the result is a valid alignment. inline Align getValueOrABITypeAlignment(MaybeAlign Alignment, Type *Ty) const { return Alignment ? *Alignment : getABITypeAlign(Ty); diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -860,11 +860,6 @@ } } -/// TODO: Remove this function once the transition to Align is over. -uint64_t DataLayout::getABITypeAlignment(Type *Ty) const { - return getABITypeAlign(Ty).value(); -} - Align DataLayout::getABITypeAlign(Type *Ty) const { return getAlignment(Ty, true); }