Skip to content

Commit f7ae7c0

Browse files
committed
[Frontend] Avoid passing CompilerInvocation + CompilerInstance
The invocation can be retrieved from the CompilerInstance.
1 parent 8755ced commit f7ae7c0

File tree

3 files changed

+121
-149
lines changed

3 files changed

+121
-149
lines changed

include/swift/Migrator/Migrator.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ namespace migrator {
2828
/// If needed, run the migrator on the compiler invocation's input file and emit
2929
/// a "replacement map" describing the requested changes to the source file.
3030
/// \return true on error.
31-
bool updateCodeAndEmitRemapIfNeeded(CompilerInstance *Instance,
32-
const CompilerInvocation &Invocation);
31+
bool updateCodeAndEmitRemapIfNeeded(CompilerInstance *Instance);
3332

3433
/// Specify options when running syntactic migration pass.
3534
struct SyntacticPassOptions {

0 commit comments

Comments
 (0)