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