Index: tools/clang/blink_gc_plugin/tests/register_weak_members_template.h |
diff --git a/tools/clang/blink_gc_plugin/tests/register_weak_members_template.h b/tools/clang/blink_gc_plugin/tests/register_weak_members_template.h |
index 61d8fbb8d450c154f368efe86bac32bc9c4f18b5..81d917c85538428a503447d8869a5336f728bab9 100644 |
--- a/tools/clang/blink_gc_plugin/tests/register_weak_members_template.h |
+++ b/tools/clang/blink_gc_plugin/tests/register_weak_members_template.h |
@@ -11,30 +11,20 @@ namespace blink { |
class X : public GarbageCollected<X> { |
public: |
- void Trace(Visitor* visitor) { TraceImpl(visitor); } |
- void Trace(InlinedGlobalMarkingVisitor visitor) { TraceImpl(visitor); } |
- |
- private: |
- template <typename VisitorDispatcher> |
- void TraceImpl(VisitorDispatcher visitor) {} |
+ void Trace(Visitor* visitor) {} |
}; |
class HasUntracedWeakMembers : public GarbageCollected<HasUntracedWeakMembers> { |
public: |
- void Trace(Visitor* visitor) { TraceImpl(visitor); } |
- void Trace(InlinedGlobalMarkingVisitor visitor) { TraceImpl(visitor); } |
- |
- // Don't have to be defined for the purpose of this test. |
- void clearWeakMembers(Visitor* visitor); |
- |
- private: |
- template <typename VisitorDispatcher> |
- void TraceImpl(VisitorDispatcher visitor) { |
+ void Trace(Visitor* visitor) { |
visitor->template RegisterWeakMembers< |
- HasUntracedWeakMembers, |
- &HasUntracedWeakMembers::clearWeakMembers>(this); |
+ HasUntracedWeakMembers, &HasUntracedWeakMembers::ClearWeakMembers>( |
+ this); |
} |
+ void ClearWeakMembers(Visitor* visitor); |
+ |
+ private: |
WeakMember<X> x_; |
}; |