mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a command-line option to time expression type-checking.
This commit is contained in:
@@ -471,6 +471,9 @@ void CompilerInstance::performSema() {
|
||||
if (options.actionIsImmediate()) {
|
||||
TypeCheckOptions |= TypeCheckingFlags::ForImmediateMode;
|
||||
}
|
||||
if (options.DebugTimeExpressionTypeChecking) {
|
||||
TypeCheckOptions |= TypeCheckingFlags::DebugTimeExpressions;
|
||||
}
|
||||
|
||||
// Parse the main file last.
|
||||
if (MainBufferID != NO_SUCH_BUFFER) {
|
||||
|
||||
Reference in New Issue
Block a user