summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/Alignment.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Support/Alignment.h')
-rw-r--r--llvm/include/llvm/Support/Alignment.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Support/Alignment.h b/llvm/include/llvm/Support/Alignment.h
index c2673faf317..c90d8d72d44 100644
--- a/llvm/include/llvm/Support/Alignment.h
+++ b/llvm/include/llvm/Support/Alignment.h
@@ -76,10 +76,10 @@ public:
/// Returns a default constructed Align which corresponds to no alignment.
/// This is useful to test for unalignment as it conveys clear semantic.
- /// `if (A != llvm::Align::None())`
+ /// `if (A != Align::None())`
/// would be better than
- /// `if (A > llvm::Align(1))`
- constexpr static const Align None() { return llvm::Align(); }
+ /// `if (A > Align(1))`
+ constexpr static const Align None() { return Align(); }
};
/// Treats the value 0 as a 1, so Align is always at least 1.
@@ -142,8 +142,8 @@ inline uint64_t alignTo(uint64_t Size, MaybeAlign A) {
/// Returns the offset to the next integer (mod 2**64) that is greater than
/// or equal to \p Value and is a multiple of \p Align.
-inline uint64_t offsetToAlignment(uint64_t Value, llvm::Align Align) {
- return alignTo(Value, Align) - Value;
+inline uint64_t offsetToAlignment(uint64_t Value, Align Alignment) {
+ return alignTo(Value, Alignment) - Value;
}
/// Returns the log2 of the alignment.
OpenPOWER on IntegriCloud