Skip to content

Commit 2ee4024

Browse files
committed
[NFC] LifetimeCompletion: operator<<(boundary).
1 parent a0b8324 commit 2ee4024

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/swift/SIL/OSSALifetimeCompletion.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,19 @@ class UnreachableLifetimeCompletion {
170170
bool completeLifetimes();
171171
};
172172

173+
inline llvm::raw_ostream &
174+
operator<<(llvm::raw_ostream &OS, OSSALifetimeCompletion::Boundary boundary) {
175+
switch (boundary) {
176+
case OSSALifetimeCompletion::Boundary::Liveness:
177+
OS << "liveness";
178+
break;
179+
case OSSALifetimeCompletion::Boundary::Availability:
180+
OS << "availability";
181+
break;
182+
}
183+
return OS;
184+
}
185+
173186
} // namespace swift
174187

175188
#endif

0 commit comments

Comments
 (0)