Add a command-line option to time expression type-checking.

This commit is contained in:
Mark Lacey
2017-01-11 00:15:38 -08:00
parent 5f2aeec434
commit 3903a43f97
8 changed files with 55 additions and 1 deletions

View File

@@ -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) {