Skip to content

Commit 0c04ca3

Browse files
committed
use better cdac_data friends
1 parent ea9fce1 commit 0c04ca3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/coreclr/vm/codeman.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ class Range
553553
return end;
554554
}
555555

556-
template<typename T> friend struct ::cdac_data;
556+
friend struct ::cdac_data<RangeSection>;
557557
};
558558

559559
struct RangeSection
@@ -626,7 +626,7 @@ struct RangeSection
626626

627627
RangeSection* _pRangeSectionNextForDelete = NULL; // Used for adding to the cleanup list
628628

629-
template<typename T> friend struct ::cdac_data;
629+
friend struct ::cdac_data<RangeSection>;
630630
};
631631

632632
template<> struct cdac_data<RangeSection>
@@ -1444,7 +1444,7 @@ class RangeSectionMap
14441444
}
14451445
#endif// DACCESS_COMPILE
14461446

1447-
template<typename T> friend struct ::cdac_data;
1447+
friend struct ::cdac_data<RangeSectionMap>;
14481448
};
14491449

14501450
template<>
@@ -2274,7 +2274,7 @@ class ExecutionManager
22742274
JumpStubTable m_Table;
22752275
};
22762276

2277-
template<typename T> friend struct ::cdac_data;
2277+
friend struct ::cdac_data<ExecutionManager>;
22782278
};
22792279

22802280
#ifndef DACCESS_COMPILE
@@ -2590,7 +2590,6 @@ class EECodeInfo
25902590
UNWIND_INFO * GetUnwindInfoHelper(ULONG unwindInfoOffset);
25912591
#endif // TARGET_AMD64
25922592

2593-
template<typename T> friend struct ::cdac_data;
25942593
};
25952594

25962595
#include "codeman.inl"

0 commit comments

Comments
 (0)