File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,8 @@ bool FrontendOptions::canActionEmitReferenceDependencies(ActionType action) {
251
251
bool FrontendOptions::canActionEmitObjCHeader (ActionType action) {
252
252
switch (action) {
253
253
case ActionType::NoneAction:
254
+ case ActionType::Parse:
255
+ case ActionType::ResolveImports:
254
256
case ActionType::DumpParse:
255
257
case ActionType::DumpInterfaceHash:
256
258
case ActionType::DumpAST:
@@ -262,8 +264,6 @@ bool FrontendOptions::canActionEmitObjCHeader(ActionType action) {
262
264
case ActionType::Immediate:
263
265
case ActionType::REPL:
264
266
return false ;
265
- case ActionType::Parse:
266
- case ActionType::ResolveImports:
267
267
case ActionType::Typecheck:
268
268
case ActionType::MergeModules:
269
269
case ActionType::EmitModuleOnly:
Original file line number Diff line number Diff line change 39
39
// RUN: not %target-swift-frontend -resolve-imports -emit-reference-dependencies %s 2>&1 | %FileCheck -check-prefix=RESOLVE_IMPORTS_NO_REFERENCE_DEPS %s
40
40
// RESOLVE_IMPORTS_NO_REFERENCE_DEPS: error: this mode does not support emitting reference dependency files{{$}}
41
41
42
+ // RUN: not %target-swift-frontend -parse -emit-objc-header %s 2>&1 | %FileCheck -check-prefix=PARSE_NO_OBJC_HEADER %s
43
+ // PARSE_NO_OBJC_HEADER: error: this mode does not support emitting Objective-C headers{{$}}
44
+ // RUN: not %target-swift-frontend -dump-ast -emit-objc-header %s 2>&1 | %FileCheck -check-prefix=DUMP_NO_OBJC_HEADER %s
45
+ // DUMP_NO_OBJC_HEADER: error: this mode does not support emitting Objective-C headers{{$}}
46
+ // RUN: not %target-swift-frontend -resolve-imports -emit-objc-header %s 2>&1 | %FileCheck -check-prefix=RESOLVE_IMPORTS_NO_OBJC_HEADER %s
47
+ // RESOLVE_IMPORTS_NO_OBJC_HEADER: error: this mode does not support emitting Objective-C headers{{$}}
48
+
42
49
// Should not fail with non-zero exit code.
43
50
// RUN: %target-swift-frontend -emit-silgen %S/Inputs/invalid-module-name.swift > /dev/null
44
51
// RUN: %target-swift-frontend -emit-silgen -parse-as-library %S/Inputs/invalid-module-name.swift -module-name foo > /dev/null
You can’t perform that action at this time.
0 commit comments