Skip to content

Commit

Permalink
[llvm][NFC] Remove deprecated Alignment::None()
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D101905
  • Loading branch information
gchatelet committed May 6, 2021
1 parent df729e2 commit b479554
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions llvm/include/llvm/Support/Alignment.h
Expand Up @@ -84,16 +84,6 @@ struct Align {
/// 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>())};
Expand Down

0 comments on commit b479554

Please sign in to comment.