Skip to content

Commit 9220c8d

Browse files
committed
Remove legacy libSyntax related options
`-emit-syntax` and `-verify-syntax-tree` are not supported anymore.
1 parent 8dc9215 commit 9220c8d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Sources/SwiftDriver/Driver/Driver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ extension Driver {
19011901
case .indexFile:
19021902
compilerOutputType = .indexData
19031903

1904-
case .parse, .resolveImports, .typecheck, .dumpParse, .emitSyntax,
1904+
case .parse, .resolveImports, .typecheck, .dumpParse,
19051905
.printAst, .dumpTypeRefinementContexts, .dumpScopeMaps,
19061906
.dumpInterfaceHash, .dumpTypeInfo, .verifyDebugInfo:
19071907
compilerOutputType = nil

Sources/SwiftOptions/Options.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ extension Option {
293293
public static let emitSupportedFeatures: Option = Option("-emit-supported-features", .flag, attributes: [.frontend, .noInteractive, .doesNotAffectIncrementalBuild], helpText: "Emit a JSON file including all supported compiler features", group: .modes)
294294
public static let emitSymbolGraphDir: Option = Option("-emit-symbol-graph-dir", .separate, attributes: [.helpHidden, .frontend, .noInteractive, .argumentIsPath, .supplementaryOutput], metaVar: "<dir>", helpText: "Emit a symbol graph to directory <dir>")
295295
public static let emitSymbolGraph: Option = Option("-emit-symbol-graph", .flag, attributes: [.helpHidden, .frontend, .noInteractive, .supplementaryOutput], helpText: "Emit a symbol graph")
296-
public static let emitSyntax: Option = Option("-emit-syntax", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Parse input file(s) and emit the Syntax tree(s) as JSON", group: .modes)
297296
public static let emitTbdPathEQ: Option = Option("-emit-tbd-path=", .joined, alias: Option.emitTbdPath, attributes: [.frontend, .noInteractive, .argumentIsPath, .supplementaryOutput])
298297
public static let emitTbdPath: Option = Option("-emit-tbd-path", .separate, attributes: [.frontend, .noInteractive, .argumentIsPath, .supplementaryOutput], metaVar: "<path>", helpText: "Emit the TBD file to <path>")
299298
public static let emitTbd: Option = Option("-emit-tbd", .flag, attributes: [.frontend, .noInteractive, .supplementaryOutput], helpText: "Emit a TBD file")
@@ -693,7 +692,6 @@ extension Option {
693692
public static let verifyGenericSignatures: Option = Option("-verify-generic-signatures", .separate, attributes: [.frontend, .noDriver], metaVar: "<module-name>", helpText: "Verify the generic signatures in the given module")
694693
public static let verifyIgnoreUnknown: Option = Option("-verify-ignore-unknown", .flag, attributes: [.frontend, .noDriver], helpText: "Allow diagnostics for '<unknown>' location in verify mode")
695694
public static let verifyIncrementalDependencies: Option = Option("-verify-incremental-dependencies", .flag, attributes: [.helpHidden, .frontend], helpText: "Enable the dependency verifier for each frontend job")
696-
public static let verifySyntaxTree: Option = Option("-verify-syntax-tree", .flag, attributes: [.frontend, .noDriver], helpText: "Verify that no unknown nodes exist in the libSyntax tree")
697695
public static let verifyTypeLayout: Option = Option("-verify-type-layout", .joinedOrSeparate, attributes: [.helpHidden, .frontend, .noDriver], metaVar: "<type>", helpText: "Verify compile-time and runtime type layout information for type")
698696
public static let verify: Option = Option("-verify", .flag, attributes: [.frontend, .noDriver], helpText: "Verify diagnostics against expected-{error|warning|note} annotations")
699697
public static let version: Option = Option("-version", .flag, attributes: [.frontend], helpText: "Print version information and exit")
@@ -1012,7 +1010,6 @@ extension Option {
10121010
Option.emitSupportedFeatures,
10131011
Option.emitSymbolGraphDir,
10141012
Option.emitSymbolGraph,
1015-
Option.emitSyntax,
10161013
Option.emitTbdPathEQ,
10171014
Option.emitTbdPath,
10181015
Option.emitTbd,
@@ -1412,7 +1409,6 @@ extension Option {
14121409
Option.verifyGenericSignatures,
14131410
Option.verifyIgnoreUnknown,
14141411
Option.verifyIncrementalDependencies,
1415-
Option.verifySyntaxTree,
14161412
Option.verifyTypeLayout,
14171413
Option.verify,
14181414
Option.version,

0 commit comments

Comments
 (0)