SIL: Add SILFunction::mapTypeOutOfContext(), NFC

This commit is contained in:
Slava Pestov
2016-02-04 01:40:29 -08:00
parent d02f70e280
commit 7fdada8ee5
3 changed files with 19 additions and 19 deletions

View File

@@ -272,6 +272,12 @@ SILType ArchetypeBuilder::substDependentType(SILModule &M, SILType type) {
type);
}
Type SILFunction::mapTypeOutOfContext(Type type) const {
return ArchetypeBuilder::mapTypeOutOfContext(getModule().getSwiftModule(),
getContextGenericParams(),
type);
}
SILBasicBlock *SILFunction::createBasicBlock() {
return new (getModule()) SILBasicBlock(this);
}