Skip to content

Commit d70933b

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 5ec1104 commit d70933b

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
@@ -286,6 +286,11 @@ class regionanalysisimpl::TrackableValue {
286286
/// parameter.
287287
bool isTransferringParameter() const;
288288

289+
void printIsolationInfo(SmallString<64> &outString) const {
290+
llvm::raw_svector_ostream os(outString);
291+
getIsolationRegionInfo().printForDiagnostics(os);
292+
}
293+
289294
void print(llvm::raw_ostream &os) const {
290295
os << "TrackableValue. State: ";
291296
valueState.print(os);

0 commit comments

Comments
 (0)