Skip to content

Commit caf944e

Browse files
committed
Add operator<<(llvm::raw_ostream &os, SILIsolationInfo|SILDynamicMergedIsolationInfo.
Just slicing off a nice addition. These already had appropriate print methods so this commit just exposes the print API in the raw_ostream format. (cherry picked from commit 0b42f35)
1 parent 2026f39 commit caf944e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/swift/SILOptimizer/Utils/SILIsolationInfo.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,4 +493,22 @@ class SILDynamicMergedIsolationInfo {
493493

494494
} // namespace swift
495495

496+
namespace llvm {
497+
498+
inline llvm::raw_ostream &
499+
operator<<(llvm::raw_ostream &os,
500+
const swift::SILIsolationInfo &isolationInfo) {
501+
isolationInfo.printForOneLineLogging(os);
502+
return os;
503+
}
504+
505+
inline llvm::raw_ostream &
506+
operator<<(llvm::raw_ostream &os,
507+
const swift::SILDynamicMergedIsolationInfo &isolationInfo) {
508+
isolationInfo.printForOneLineLogging(os);
509+
return os;
510+
}
511+
512+
} // namespace llvm
513+
496514
#endif

0 commit comments

Comments
 (0)