Skip to content

Commit 5476740

Browse files
committed
[NFC] LifetimeCompletion: operator<<(boundary).
1 parent d2aef4b commit 5476740

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/swift/SIL/OSSALifetimeCompletion.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,18 @@ class UnreachableLifetimeCompletion {
172172

173173
} // namespace swift
174174

175+
inline llvm::raw_ostream &
176+
operator<<(llvm::raw_ostream &OS,
177+
const swift::OSSALifetimeCompletion::Boundary &boundary) {
178+
switch (boundary) {
179+
case swift::OSSALifetimeCompletion::Boundary::Availability:
180+
OS << "availability";
181+
break;
182+
case swift::OSSALifetimeCompletion::Boundary::Liveness:
183+
OS << "liveness";
184+
break;
185+
}
186+
return OS;
187+
}
188+
175189
#endif

0 commit comments

Comments
 (0)