Skip to content

Commit 6cdfc2e

Browse files
committed
EscapeAnalysis: Make the CGNode class public. It's used by clients. NFC.
1 parent 911b05a commit 6cdfc2e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

include/swift/SILOptimizer/Analysis/EscapeAnalysis.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,17 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
104104
Global
105105
};
106106

107-
class CGNode;
108-
class CGNodeMap;
109107
public:
108+
class CGNode;
110109
class ConnectionGraph;
111110
private:
111+
class CGNodeMap;
112112

113113
/// The int-part is an EdgeType and specifies which kind of predecessor it is.
114114
typedef llvm::PointerIntPair<CGNode *, 1> Predecessor;
115115

116+
public:
117+
116118
/// A node in the connection graph.
117119
/// A node basically represents a "pointer" or the "memory content" where a
118120
/// pointer points to (see NodeType).
@@ -302,7 +304,9 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
302304
CGNode *getContentNodeOrNull() const {
303305
return pointsTo;
304306
}
305-
};
307+
};
308+
309+
private:
306310

307311
/// Mapping from nodes in a callee-graph to nodes in a caller-graph.
308312
class CGNodeMap {

0 commit comments

Comments
 (0)