[PATCH] D101905: [llvm][NFC] Remove deprecated Alignment::None()
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 00:21:45 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb4795544d42b: [llvm][NFC] Remove deprecated Alignment::None() (authored by gchatelet).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101905/new/
https://reviews.llvm.org/D101905
Files:
llvm/include/llvm/Support/Alignment.h
Index: llvm/include/llvm/Support/Alignment.h
===================================================================
--- llvm/include/llvm/Support/Alignment.h
+++ llvm/include/llvm/Support/Alignment.h
@@ -84,16 +84,6 @@
/// 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>())};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101905.343309.patch
Type: text/x-patch
Size: 998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210506/3430a02a/attachment.bin>
More information about the llvm-commits
mailing list