diff --git a/llvm/include/llvm/Support/TypeSize.h b/llvm/include/llvm/Support/TypeSize.h index 53c888e0a2e9b4..0abd4b3db4caec 100644 --- a/llvm/include/llvm/Support/TypeSize.h +++ b/llvm/include/llvm/Support/TypeSize.h @@ -16,6 +16,7 @@ #define LLVM_SUPPORT_TYPESIZE_H #include "llvm/ADT/ArrayRef.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" @@ -334,7 +335,10 @@ class TypeSize : public details::FixedOrScalableQuantity { return TypeSize(MinimumSize, true); } + LLVM_DEPRECATED("Use getFixedValue() instead", "getFixedValue") constexpr ScalarTy getFixedSize() const { return getFixedValue(); } + + LLVM_DEPRECATED("Use getKnownMinValue() instead", "getKnownMinValue") constexpr ScalarTy getKnownMinSize() const { return getKnownMinValue(); } // All code for this class below this point is needed because of the