Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2019-09-22 19:30:00 -07:00
13 changed files with 488 additions and 262 deletions

View File

@@ -749,13 +749,16 @@ static void dumpAndPrintScopeMap(CompilerInvocation &Invocation,
if (Invocation.getFrontendOptions().DumpScopeMapLocations.empty()) {
llvm::errs() << "***Complete scope map***\n";
scope.buildFullyExpandedTree();
scope.print(llvm::errs());
return;
}
// Probe each of the locations, and dump what we find.
for (auto lineColumn :
Invocation.getFrontendOptions().DumpScopeMapLocations)
Invocation.getFrontendOptions().DumpScopeMapLocations) {
scope.buildFullyExpandedTree();
scope.dumpOneScopeMapLocation(lineColumn);
}
}
static SourceFile *getPrimaryOrMainSourceFile(CompilerInvocation &Invocation,