Cache the transformation of Swift types to Clang types.

Should fix <rdar://16830685>.

Swift SVN r18247
This commit is contained in:
John McCall
2014-05-17 08:52:34 +00:00
parent 5e9c2b40f0
commit af92489d00
7 changed files with 272 additions and 239 deletions

View File

@@ -257,9 +257,12 @@ IRGenModule::IRGenModule(ASTContext &Context,
if (Opts.DebugInfo) {
DebugInfo = new IRGenDebugInfo(Opts, *CI, *this, Module);
}
initClangTypeConverter();
}
IRGenModule::~IRGenModule() {
destroyClangTypeConverter();
delete &Types;
if (DebugInfo)
delete DebugInfo;