1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[llvm][NFC] Remove deprecated Alignment::None()

Differential Revision: https://reviews.llvm.org/D101905
This commit is contained in:
Guillaume Chatelet 2021-05-06 07:21:23 +00:00
parent 031a47da5d
commit d7362d3457

View File

@ -84,16 +84,6 @@ public:
/// Needed to interact with C for instance.
uint64_t value() const { return uint64_t(1) << ShiftValue; }
/// Returns a default constructed Align which corresponds to no alignment.
/// It was decided to deprecate Align::None because it's too close to
/// llvm::None which can be used to initialize `MaybeAlign`.
/// MaybeAlign = llvm::None means unspecified alignment,
/// Align = Align::None() means alignment of one byte.
LLVM_ATTRIBUTE_DEPRECATED(constexpr static const Align None(),
"Use Align() or Align(1) instead") {
return Align();
}
/// Allow constructions of constexpr Align.
template <size_t kValue> constexpr static LogValue Constant() {
return LogValue{static_cast<uint8_t>(CTLog2<kValue>())};