kazu created this revision.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The last use was removed by:
commit 0eb06cb3aa2700508c20da28f22ff91e7b82a436
Author: Roy Jacobson <[email protected]>
Date: Tue Mar 14 21:25:54 2023 +0200
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151607
Files:
clang/include/clang/AST/Type.h
Index: clang/include/clang/AST/Type.h
===================================================================
--- clang/include/clang/AST/Type.h
+++ clang/include/clang/AST/Type.h
@@ -948,7 +948,6 @@
void removeLocalConst();
void removeLocalVolatile();
void removeLocalRestrict();
- void removeLocalCVRQualifiers(unsigned Mask);
void removeLocalFastQualifiers() { Value.setInt(0); }
void removeLocalFastQualifiers(unsigned Mask) {
@@ -6781,15 +6780,6 @@
removeLocalFastQualifiers(Qualifiers::Volatile);
}
-inline void QualType::removeLocalCVRQualifiers(unsigned Mask) {
- assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits");
- static_assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask,
- "Fast bits differ from CVR bits!");
-
- // Fast path: we don't need to touch the slow qualifiers.
- removeLocalFastQualifiers(Mask);
-}
-
/// Check if this type has any address space qualifier.
inline bool QualType::hasAddressSpace() const {
return getQualifiers().hasAddressSpace();
Index: clang/include/clang/AST/Type.h
===================================================================
--- clang/include/clang/AST/Type.h
+++ clang/include/clang/AST/Type.h
@@ -948,7 +948,6 @@
void removeLocalConst();
void removeLocalVolatile();
void removeLocalRestrict();
- void removeLocalCVRQualifiers(unsigned Mask);
void removeLocalFastQualifiers() { Value.setInt(0); }
void removeLocalFastQualifiers(unsigned Mask) {
@@ -6781,15 +6780,6 @@
removeLocalFastQualifiers(Qualifiers::Volatile);
}
-inline void QualType::removeLocalCVRQualifiers(unsigned Mask) {
- assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits");
- static_assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask,
- "Fast bits differ from CVR bits!");
-
- // Fast path: we don't need to touch the slow qualifiers.
- removeLocalFastQualifiers(Mask);
-}
-
/// Check if this type has any address space qualifier.
inline bool QualType::hasAddressSpace() const {
return getQualifiers().hasAddressSpace();
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits