Add '-sil-i' option to driver.

Will allow immediate execution through SIL-irgen when SIL-irgen actually exists. Also add NeedsOutput_{First,Last} symbols to the ActionType enum so that the insidious enum ordering significance there is more obvious.

Swift SVN r3757
This commit is contained in:
Joe Groff
2013-01-14 02:57:04 +00:00
parent 9232d330c1
commit 662afeaeef
2 changed files with 4 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ static bool IRGenImportedModules(TranslationUnit *TU,
return false;
}
void swift::RunImmediately(TranslationUnit *TU) {
void swift::RunImmediately(TranslationUnit *TU, SILModule *SILMod) {
ASTContext &Context = TU->Ctx;
irgen::Options Options;
Options.OutputFilename = "";
@@ -150,7 +150,7 @@ void swift::RunImmediately(TranslationUnit *TU) {
llvm::LLVMContext LLVMContext;
llvm::Module Module(TU->Name.str(), LLVMContext);
performCaptureAnalysis(TU);
performIRGeneration(Options, &Module, TU);
performIRGeneration(Options, &Module, TU, SILMod);
if (Context.hadError())
return;