Skip to content

Commit 86e9be0

Browse files
authored
EquivalenceClasses: Make ECValue public. NFC (#139689)
Expose the inner class so that we can explicitly write the type outside the parent class.
1 parent 680b3b7 commit 86e9be0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/ADT/EquivalenceClasses.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ namespace llvm {
6060
/// 5 1 2
6161
///
6262
template <class ElemTy> class EquivalenceClasses {
63+
public:
6364
/// ECValue - The EquivalenceClasses data structure is just a set of these.
6465
/// Each of these represents a relation for a value. First it stores the
6566
/// value itself. Next, it provides a "next pointer", which is used to
@@ -122,6 +123,7 @@ template <class ElemTy> class EquivalenceClasses {
122123
}
123124
};
124125

126+
private:
125127
/// TheMapping - This implicitly provides a mapping from ElemTy values to the
126128
/// ECValues, it just keeps the key as part of the value.
127129
DenseMap<ElemTy, ECValue *> TheMapping;

0 commit comments

Comments
 (0)