Hack: ignore loaded modules in immediate mode SILGen/IRGen.

This matches the behavior for compilation, and lets us test modules that
don't need any extra codegen.

With this, typealiases of builtins can be used end-to-end in modules!

Swift SVN r5326
This commit is contained in:
Jordan Rose
2013-05-25 01:34:59 +00:00
parent 7a13e58b38
commit 878cc5f0e1
2 changed files with 17 additions and 1 deletions

View File

@@ -217,7 +217,10 @@ static bool IRGenImportedModules(TranslationUnit *TU,
continue;
}
// FIXME: Handle Swift modules here.
// FIXME: Handle Swift modules that need IRGen here.
if (isa<LoadedModule>(ModPair.second))
continue;
TranslationUnit *SubTU = cast<TranslationUnit>(ModPair.second);
if (!ImportedModules.insert(SubTU))
continue;