Skip to content

Commit a81cf93

Browse files
committed
[NFC] Promote MergeModuleJobAction to an IncrementalJobAction
1 parent 84f9ba3 commit a81cf93

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/swift/Driver/Action.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ class IncrementalJobAction : public JobAction {
183183

184184
public:
185185
static bool classof(const Action *A) {
186-
return A->getKind() == Action::Kind::CompileJob;
186+
return A->getKind() == Action::Kind::CompileJob ||
187+
A->getKind() == Action::Kind::MergeModuleJob;
187188
}
188189
};
189190

@@ -280,12 +281,12 @@ class REPLJobAction : public JobAction {
280281
}
281282
};
282283

283-
class MergeModuleJobAction : public JobAction {
284+
class MergeModuleJobAction : public IncrementalJobAction {
284285
virtual void anchor() override;
285286
public:
286-
MergeModuleJobAction(ArrayRef<const Action *> Inputs)
287-
: JobAction(Action::Kind::MergeModuleJob, Inputs,
288-
file_types::TY_SwiftModuleFile) {}
287+
MergeModuleJobAction(ArrayRef<const Action *> Inputs, InputInfo input)
288+
: IncrementalJobAction(Action::Kind::MergeModuleJob, Inputs,
289+
file_types::TY_SwiftModuleFile, input) {}
289290

290291
static bool classof(const Action *A) {
291292
return A->getKind() == Action::Kind::MergeModuleJob;

0 commit comments

Comments
 (0)