mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user