Skip to content

Commit 21d6e45

Browse files
committed
Remove --migrate
1 parent f508faa commit 21d6e45

File tree

7 files changed

+1
-31
lines changed

7 files changed

+1
-31
lines changed

clang/include/clang/Driver/Action.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class Action {
6060
PrecompileJobClass,
6161
ExtractAPIJobClass,
6262
AnalyzeJobClass,
63-
MigrateJobClass,
6463
CompileJobClass,
6564
BackendJobClass,
6665
AssembleJobClass,
@@ -459,17 +458,6 @@ class AnalyzeJobAction : public JobAction {
459458
}
460459
};
461460

462-
class MigrateJobAction : public JobAction {
463-
void anchor() override;
464-
465-
public:
466-
MigrateJobAction(Action *Input, types::ID OutputType);
467-
468-
static bool classof(const Action *A) {
469-
return A->getKind() == MigrateJobClass;
470-
}
471-
};
472-
473461
class CompileJobAction : public JobAction {
474462
void anchor() override;
475463

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,6 @@ def no_round_trip_args : Flag<["-"], "no-round-trip-args">,
707707
Visibility<[CC1Option]>,
708708
HelpText<"Disable command line arguments round-trip.">;
709709

710-
// FIXME: What does this even do?
711-
def _migrate : Flag<["--"], "migrate">, Flags<[NoXarchOption]>,
712-
HelpText<"Run the migrator">;
713-
714710
// Make sure all other -ccc- options are rejected.
715711
def ccc_ : Joined<["-"], "ccc-">, Group<internal_Group>, Flags<[Unsupported]>;
716712

@@ -7808,8 +7804,6 @@ def rewrite_test : Flag<["-"], "rewrite-test">,
78087804
HelpText<"Rewriter playground">;
78097805
def rewrite_macros : Flag<["-"], "rewrite-macros">,
78107806
HelpText<"Expand macros without full preprocessing">;
7811-
def migrate : Flag<["-"], "migrate">, // FIXME: What does this do?
7812-
HelpText<"Migrate source code">;
78137807
def compiler_options_dump : Flag<["-"], "compiler-options-dump">,
78147808
HelpText<"Dump the compiler configuration options">;
78157809
def print_dependency_directives_minimized_source : Flag<["-"],

clang/lib/Driver/Action.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const char *Action::getClassName(ActionClass AC) {
2828
case ExtractAPIJobClass:
2929
return "api-extractor";
3030
case AnalyzeJobClass: return "analyzer";
31-
case MigrateJobClass: return "migrator";
3231
case CompileJobClass: return "compiler";
3332
case BackendJobClass: return "backend";
3433
case AssembleJobClass: return "assembler";
@@ -367,11 +366,6 @@ void AnalyzeJobAction::anchor() {}
367366
AnalyzeJobAction::AnalyzeJobAction(Action *Input, types::ID OutputType)
368367
: JobAction(AnalyzeJobClass, Input, OutputType) {}
369368

370-
void MigrateJobAction::anchor() {}
371-
372-
MigrateJobAction::MigrateJobAction(Action *Input, types::ID OutputType)
373-
: JobAction(MigrateJobClass, Input, OutputType) {}
374-
375369
void CompileJobAction::anchor() {}
376370

377371
CompileJobAction::CompileJobAction(Action *Input, types::ID OutputType)

clang/lib/Driver/Driver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ phases::ID Driver::getFinalPhase(const DerivedArgList &DAL,
371371
(PhaseArg = DAL.getLastArg(options::OPT_verify_pch)) ||
372372
(PhaseArg = DAL.getLastArg(options::OPT_rewrite_objc)) ||
373373
(PhaseArg = DAL.getLastArg(options::OPT_rewrite_legacy_objc)) ||
374-
(PhaseArg = DAL.getLastArg(options::OPT__migrate)) ||
375374
(PhaseArg = DAL.getLastArg(options::OPT__analyze)) ||
376375
(PhaseArg = DAL.getLastArg(options::OPT_emit_cir)) ||
377376
(PhaseArg = DAL.getLastArg(options::OPT_emit_ast))) {
@@ -4856,8 +4855,6 @@ Action *Driver::ConstructPhaseAction(
48564855
types::TY_RewrittenLegacyObjC);
48574856
if (Args.hasArg(options::OPT__analyze))
48584857
return C.MakeAction<AnalyzeJobAction>(Input, types::TY_Plist);
4859-
if (Args.hasArg(options::OPT__migrate))
4860-
return C.MakeAction<MigrateJobAction>(Input, types::TY_Remap);
48614858
if (Args.hasArg(options::OPT_emit_ast))
48624859
return C.MakeAction<CompileJobAction>(Input, types::TY_AST);
48634860
if (Args.hasArg(options::OPT_emit_cir))

clang/lib/Driver/ToolChain.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ Tool *ToolChain::getTool(Action::ActionClass AC) const {
634634
case Action::PreprocessJobClass:
635635
case Action::ExtractAPIJobClass:
636636
case Action::AnalyzeJobClass:
637-
case Action::MigrateJobClass:
638637
case Action::VerifyPCHJobClass:
639638
case Action::BackendJobClass:
640639
return getClang();

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5199,8 +5199,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
51995199
if (isa<AnalyzeJobAction>(JA)) {
52005200
assert(JA.getType() == types::TY_Plist && "Invalid output type.");
52015201
CmdArgs.push_back("-analyze");
5202-
} else if (isa<MigrateJobAction>(JA)) {
5203-
CmdArgs.push_back("-migrate");
52045202
} else if (isa<PreprocessJobAction>(JA)) {
52055203
if (Output.getType() == types::TY_Dependencies)
52065204
CmdArgs.push_back("-Eonly");

flang/docs/FlangDriver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Internally, a `clangDriver` based compiler driver works by creating actions
119119
that correspond to various compilation phases, e.g. `PreprocessJobClass`,
120120
`CompileJobClass`, `BackendJobClass` or `LinkJobClass` from the
121121
`clang::driver::Action::ActionClass` enum. There are also other, more
122-
specialised actions, e.g. `MigrateJobClass` or `InputClass`, that do not map
122+
specialised actions, e.g. `InputClass`, that do not map
123123
directly to common compilation steps. The actions to run are determined from
124124
the supplied compiler flags, e.g.
125125

0 commit comments

Comments
 (0)