Skip to content

Commit 0822007

Browse files
committed
Make EscapeAnalysis internals protected
All fields and methods in TR_EscapeAnalysis were public. Made them protected and marked two classes that are known to acces them directly as friends for now. Signed-off-by: Henry Zongaro <zongaro@ca.ibm.com>
1 parent 6f87a84 commit 0822007

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runtime/compiler/optimizer/EscapeAnalysis.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ class TR_EscapeAnalysis : public TR::Optimization
444444
virtual int32_t perform();
445445
virtual const char * optDetailString() const throw();
446446

447-
//protected :
447+
protected:
448448

449449
enum restrictionType { MakeNonLocal, MakeContiguous, MakeObjectReferenced };
450450

@@ -656,6 +656,9 @@ class TR_EscapeAnalysis : public TR::Optimization
656656
typedef std::map<TR::Node*, TR_Array<TR::Node*>*, NodeComparator, NodeToNodeArrayMapAllocator> NodeToNodeArrayMap;
657657

658658
NodeToNodeArrayMap * _nodeUsesThroughAternary;
659+
660+
friend class TR_FlowSensitiveEscapeAnalysis;
661+
friend class TR_LocalFlushElimination;
659662
};
660663

661664
//class Candidate;

0 commit comments

Comments
 (0)