mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Remove parsing option params from performParseOnly
Lift the `DisablePoundIfEvaluation` parsing option into `LangOptions` to subsume the need for the `EvaluateConditionals` parameter, and sink the computation of `CanDelayBodies` down into `createSourceFileForMainModule`.
This commit is contained in:
@@ -609,7 +609,10 @@ int parseFile(
|
||||
Invocation.getLangOptions().ParseForSyntaxTreeOnly = true;
|
||||
Invocation.getLangOptions().VerifySyntaxTree = options::VerifySyntaxTree;
|
||||
Invocation.getLangOptions().RequestEvaluatorGraphVizPath = options::GraphVisPath;
|
||||
Invocation.getLangOptions().DisablePoundIfEvaluation = true;
|
||||
|
||||
Invocation.getFrontendOptions().InputsAndOutputs.addInputFile(InputFileName);
|
||||
|
||||
if (InputFileName.endswith(".swiftinterface"))
|
||||
Invocation.setInputKind(InputFileKind::SwiftModuleInterface);
|
||||
Invocation.setMainExecutablePath(
|
||||
|
||||
Reference in New Issue
Block a user