From: Guillaume Chatelet Date: Wed, 11 Jan 2023 17:02:32 +0000 (+0000) Subject: Marking TypeSize getFixedSize() and getKnownMinSize() deprecated X-Git-Tag: upstream/17.0.6~21239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dcaa2bdf2300ad5bd28dcdf1b46a68ad1a95f5d;p=platform%2Fupstream%2Fllvm.git Marking TypeSize getFixedSize() and getKnownMinSize() deprecated This change is the last of a series to implement the discussion from https://reviews.llvm.org/D141134 to only keep one version of the functions. --- diff --git a/llvm/include/llvm/Support/TypeSize.h b/llvm/include/llvm/Support/TypeSize.h index 53c888e..0abd4b3 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 @@ public: 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