Merge pull request #35595 from nate-chandler/other-main

[SILGen] Enable alternative entry point name.
This commit is contained in:
nate-chandler
2021-01-27 15:22:27 -08:00
committed by GitHub
14 changed files with 61 additions and 22 deletions

View File

@@ -661,6 +661,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
}
}
if (const Arg *A = Args.getLastArg(OPT_entry_point_function_name)) {
Opts.entryPointFunctionName = A->getValue();
}
if (FrontendOpts.RequestedAction == FrontendOptions::ActionType::EmitSyntax) {
Opts.BuildSyntaxTree = true;
Opts.VerifySyntaxTree = true;