Skip to content

Commit f8810ab

Browse files
committed
[Gardening] Remove InImmediateMode
The last reader of this bit was the legacy integrated REPL.
1 parent bf1b17d commit f8810ab

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,6 @@ namespace swift {
497497
/// dumped to llvm::errs().
498498
bool DebugTimeExpressions = false;
499499

500-
/// Indicate that the type checker is checking code that will be
501-
/// immediately executed. This will suppress certain warnings
502-
/// when executing scripts.
503-
bool InImmediateMode = false;
504-
505500
/// Indicate that the type checker should skip type-checking non-inlinable
506501
/// function bodies.
507502
bool SkipNonInlinableFunctionBodies = false;

lib/Frontend/Frontend.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,6 @@ bool CompilerInstance::setup(const CompilerInvocation &Invok) {
311311
Invocation.getLangOptions().AttachCommentsToDecls = true;
312312
}
313313

314-
// Set up the type checker options.
315-
auto &typeCkOpts = Invocation.getTypeCheckerOptions();
316-
if (isWholeModuleCompilation()) {
317-
typeCkOpts.DelayWholeModuleChecking = true;
318-
}
319-
if (FrontendOptions::isActionImmediate(frontendOpts.RequestedAction)) {
320-
typeCkOpts.InImmediateMode = true;
321-
}
322-
323314
assert(Lexer::isIdentifier(Invocation.getModuleName()));
324315

325316
if (isInSILMode())

0 commit comments

Comments
 (0)