@@ -59,12 +59,12 @@ inline static StringRef getName(TopLevelKey Key) {
59
59
inline static StringRef
60
60
getIdentifierForInputInfoStatus (CompileJobAction::InputInfo::Status Status) {
61
61
switch (Status) {
62
- case CompileJobAction::InputInfo::UpToDate:
62
+ case CompileJobAction::InputInfo::Status:: UpToDate:
63
63
return " " ;
64
- case CompileJobAction::InputInfo::NewlyAdded:
65
- case CompileJobAction::InputInfo::NeedsCascadingBuild:
64
+ case CompileJobAction::InputInfo::Status:: NewlyAdded:
65
+ case CompileJobAction::InputInfo::Status:: NeedsCascadingBuild:
66
66
return " !dirty" ;
67
- case CompileJobAction::InputInfo::NeedsNonCascadingBuild:
67
+ case CompileJobAction::InputInfo::Status:: NeedsNonCascadingBuild:
68
68
return " !private" ;
69
69
}
70
70
@@ -76,11 +76,11 @@ getIdentifierForInputInfoStatus(CompileJobAction::InputInfo::Status Status) {
76
76
// / compilation record file (.swiftdeps file).
77
77
inline static Optional<CompileJobAction::InputInfo::Status>
78
78
getInfoStatusForIdentifier (StringRef Identifier) {
79
- return llvm::StringSwitch<Optional<
80
- CompileJobAction::InputInfo::Status >>(Identifier)
81
- .Case (" " , CompileJobAction::InputInfo ::UpToDate)
82
- .Case (" !dirty" , CompileJobAction::InputInfo ::NeedsCascadingBuild)
83
- .Case (" !private" , CompileJobAction::InputInfo ::NeedsNonCascadingBuild)
79
+ using InputStatus = CompileJobAction::InputInfo::Status;
80
+ return llvm::StringSwitch<Optional<InputStatus >>(Identifier)
81
+ .Case (" " , InputStatus ::UpToDate)
82
+ .Case (" !dirty" , InputStatus ::NeedsCascadingBuild)
83
+ .Case (" !private" , InputStatus ::NeedsNonCascadingBuild)
84
84
.Default (None);
85
85
}
86
86
0 commit comments