Rename -parse flag to -typecheck

A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
This commit is contained in:
David Farler
2016-11-19 11:16:44 -08:00
parent a8471dab2a
commit b7d17b25ba
6031 changed files with 6208 additions and 6208 deletions

View File

@@ -874,8 +874,8 @@ static bool performCompile(CompilerInstance &Instance,
opts.ImplicitObjCHeaderPath.empty() &&
!Context.LangOpts.EnableAppExtensionRestrictions;
// We've just been told to perform a parse, so we can return now.
if (Action == FrontendOptions::Parse) {
// We've just been told to perform a typecheck, so we can return now.
if (Action == FrontendOptions::Typecheck) {
if (!opts.ObjCHeaderOutputPath.empty())
return printAsObjC(opts.ObjCHeaderOutputPath, Instance.getMainModule(),
opts.ImplicitObjCHeaderPath, moduleIsPublic);