mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Replace "-enable-sil-linking=false" with "-disable-sil-linking".
Also, restructure so that the option isn't declared in a random library file. (And do the same with "-sil-link-all".) Part of the migration to the new driver. Swift SVN r13184
This commit is contained in:
@@ -434,6 +434,16 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.ModuleLinkName = A->getValue();
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_disable_sil_linking,
|
||||
OPT_sil_link_all)) {
|
||||
if (A->getOption().matches(OPT_disable_sil_linking))
|
||||
Opts.SILLinking = FrontendOptions::LinkNone;
|
||||
else if (A->getOption().matches(OPT_sil_link_all))
|
||||
Opts.SILLinking = FrontendOptions::LinkAll;
|
||||
else
|
||||
llvm_unreachable("Unknown SIL linking option!");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user