Add '-sil-serialize-all' testing option to the new frontend.

Swift SVN r13190
This commit is contained in:
Jordan Rose
2014-01-31 01:02:06 +00:00
parent e37d2393d1
commit bac31d985a
8 changed files with 58 additions and 54 deletions

View File

@@ -150,8 +150,10 @@ static bool performCompile(CompilerInstance &Instance,
if (!Invocation.getFrontendOptions().ModuleOutputPath.empty()) {
auto DC = PrimarySourceFile ? ModuleOrSourceFile(PrimarySourceFile) :
Instance.getMainModule();
serialize(DC, SM.get(),
serialize(DC,
Invocation.getFrontendOptions().ModuleOutputPath.c_str(),
SM.get(),
Invocation.getFrontendOptions().SILSerializeAll,
Invocation.getFrontendOptions().InputFilenames,
Invocation.getFrontendOptions().ModuleLinkName);