[SIL] NFC: Rename misleading getSwiftRValueType() to getASTType()

Reference storage types are not RValues. Also, use more SILType helper
methods to avoid line wrap.
This commit is contained in:
David Zarzycki
2018-05-04 07:19:57 -04:00
parent 0c0219cb80
commit 8c0c55539f
83 changed files with 573 additions and 600 deletions

View File

@@ -285,10 +285,10 @@ CanType swift::getNSBridgedClassOfCFClass(ModuleDecl *M, CanType type) {
static bool isCFBridgingConversion(ModuleDecl *M, SILType sourceType,
SILType targetType) {
return (sourceType.getSwiftRValueType() ==
getNSBridgedClassOfCFClass(M, targetType.getSwiftRValueType()) ||
targetType.getSwiftRValueType() ==
getNSBridgedClassOfCFClass(M, sourceType.getSwiftRValueType()));
return (sourceType.getASTType() ==
getNSBridgedClassOfCFClass(M, targetType.getASTType()) ||
targetType.getASTType() ==
getNSBridgedClassOfCFClass(M, sourceType.getASTType()));
}
/// Try to classify the dynamic-cast relationship between two types.