mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move EnableObjCOptional to LangOptions (from ClangImporterOptions).
This is a staging option, and I'm about to use it for type-checker changes. No functionality change. Swift SVN r14415
This commit is contained in:
@@ -518,6 +518,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.BuildConfigOptions[A->getValue()] = A->getValue();
|
||||
}
|
||||
|
||||
Opts.EnableObjCOptional = Args.hasArg(OPT_enable_objc_optional);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -534,8 +536,6 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts, ArgList &Args,
|
||||
Opts.ExtraArgs.push_back(A->getValue());
|
||||
}
|
||||
|
||||
Opts.EnableOptional = Args.hasArg(OPT_enable_objc_optional);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user