Skip to content

Commit

Permalink
Marking TypeSize getFixedSize() and getKnownMinSize() deprecated
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gchatelet committed Jan 12, 2023
1 parent d1e0fd2 commit 1dcaa2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/Support/TypeSize.h
Expand Up @@ -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"

Expand Down Expand Up @@ -334,7 +335,10 @@ class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> {
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
Expand Down

0 comments on commit 1dcaa2b

Please sign in to comment.