SIL: Add TypeLowering::getLoweredRValueType()

In various places we want to get a lowered type, but ignoring the
SIL type category (object or address). Add a pair of utility methods
for this purpose.
This commit is contained in:
Slava Pestov
2019-03-04 17:37:58 -05:00
parent 35e67db83a
commit fe094c6254

View File

@@ -792,6 +792,14 @@ public:
return ti.getLoweredType();
}
CanType getLoweredRValueType(Type t) {
return getLoweredType(t).getASTType();
}
CanType getLoweredRValueType(AbstractionPattern origType, Type substType) {
return getLoweredType(origType, substType).getASTType();
}
AbstractionPattern getAbstractionPattern(AbstractStorageDecl *storage,
bool isNonObjC = false);
AbstractionPattern getAbstractionPattern(VarDecl *var,