File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2182,6 +2182,16 @@ class ASTContext : public RefCountedBase<ASTContext> {
2182
2182
return getQualifiedType (type.getUnqualifiedType (), Qs);
2183
2183
}
2184
2184
2185
+ // / \brief Return a type with the given __ptrauth qualifier.
2186
+ QualType getPointerAuthType (QualType type, PointerAuthQualifier pointerAuth) {
2187
+ assert (!type.getPointerAuth ());
2188
+ assert (pointerAuth);
2189
+
2190
+ Qualifiers qs;
2191
+ qs.setPointerAuth (pointerAuth);
2192
+ return getQualifiedType (type, qs);
2193
+ }
2194
+
2185
2195
unsigned char getFixedPointScale (QualType Ty) const ;
2186
2196
unsigned char getFixedPointIBits (QualType Ty) const ;
2187
2197
llvm::FixedPointSemantics getFixedPointSemantics (QualType Ty) const ;
Original file line number Diff line number Diff line change @@ -1434,6 +1434,10 @@ class QualType {
1434
1434
// true when Type is objc's weak and weak is enabled but ARC isn't.
1435
1435
bool isNonWeakInMRRWithObjCWeak (const ASTContext &Context) const ;
1436
1436
1437
+ PointerAuthQualifier getPointerAuth () const {
1438
+ return getQualifiers ().getPointerAuth ();
1439
+ }
1440
+
1437
1441
enum PrimitiveDefaultInitializeKind {
1438
1442
// / The type does not fall into any of the following categories. Note that
1439
1443
// / this case is zero-valued so that values of this enum can be used as a
You can’t perform that action at this time.
0 commit comments