Skip to content

Commit 1e8f24a

Browse files
committed
[Frontend] Move parsing outputs to end of pipeline
1 parent 6ed0a87 commit 1e8f24a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,9 @@ static void performEndOfPipelineActions(CompilerInstance &Instance) {
12561256
emitMakeDependenciesIfNeeded(Instance.getDiags(),
12571257
Instance.getDependencyTracker(), opts);
12581258

1259+
// Emit information about the parsed primaries.
1260+
emitSwiftRangesForAllPrimaryInputsIfNeeded(Instance);
1261+
emitCompiledSourceForAllPrimaryInputsIfNeeded(Instance);
12591262
}
12601263

12611264
/// Performs the compile requested by the user.
@@ -1354,9 +1357,6 @@ static bool performCompile(CompilerInstance &Instance,
13541357
if (auto r = dumpASTIfNeeded(Instance))
13551358
return *r;
13561359

1357-
emitSwiftRangesForAllPrimaryInputsIfNeeded(Instance);
1358-
emitCompiledSourceForAllPrimaryInputsIfNeeded(Instance);
1359-
13601360
if (Context.hadError())
13611361
return true;
13621362

0 commit comments

Comments
 (0)