Skip to content

Commit beaab91

Browse files
committed
[region-isolation] Add a small helper to TrackableValue to print it's isolation info.
I am finding that I am calling that a bunch so this just makes it a little more convenient.
1 parent 22919a9 commit beaab91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/SILOptimizer/Analysis/RegionAnalysis.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ class regionanalysisimpl::TrackableValue {
289289
/// parameter.
290290
bool isTransferringParameter() const;
291291

292+
void printIsolationInfo(SmallString<64> &outString) const {
293+
llvm::raw_svector_ostream os(outString);
294+
getIsolationRegionInfo().printForDiagnostics(os);
295+
}
296+
292297
void print(llvm::raw_ostream &os) const {
293298
os << "TrackableValue. State: ";
294299
valueState.print(os);

0 commit comments

Comments
 (0)