Sema: use new `getNS{,U}IntegerType` for NS{,U}Integer
Use the new helper methods to get the underlying type for NSUInteger, NSInteger types. This avoids spreading the knowledge of the underlying types in various sites. For non-LLP64 targets, this has no change. llvm-svn: 316013
This commit is contained in:
parent
94c0eb031c
commit
a01ed93e8c
|
@ -6168,9 +6168,9 @@ shouldNotPrintDirectly(const ASTContext &Context,
|
|||
while (const TypedefType *UserTy = TyTy->getAs<TypedefType>()) {
|
||||
StringRef Name = UserTy->getDecl()->getName();
|
||||
QualType CastTy = llvm::StringSwitch<QualType>(Name)
|
||||
.Case("CFIndex", Context.LongTy)
|
||||
.Case("NSInteger", Context.LongTy)
|
||||
.Case("NSUInteger", Context.UnsignedLongTy)
|
||||
.Case("CFIndex", Context.getNSIntegerType())
|
||||
.Case("NSInteger", Context.getNSIntegerType())
|
||||
.Case("NSUInteger", Context.getNSUIntegerType())
|
||||
.Case("SInt32", Context.IntTy)
|
||||
.Case("UInt32", Context.UnsignedIntTy)
|
||||
.Default(QualType());
|
||||
|
|
Loading…
Reference in New Issue