From 82b0740f03b1a6acab4558214d3edc362e27e238 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 1 Mar 2017 19:02:04 +0000 Subject: Use IntrusiveForwardList<> for Env-/UsePosition. Test: m test-art-host-gtest Test: testrunner.py --host Change-Id: I2b720e2ed8f96303cf80e9daa6d5278bf0c3da2f --- compiler/optimizing/nodes.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 4d96fbe24c..85e37ca817 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -1485,7 +1485,8 @@ FOR_EACH_INSTRUCTION(FORWARD_DECLARATION) H##type* As##type() { return this; } template -class HUseListNode : public ArenaObject { +class HUseListNode : public ArenaObject, + public IntrusiveForwardListNode> { public: // Get the instruction which has this use as one of the inputs. T GetUser() const { return user_; } @@ -1494,10 +1495,6 @@ class HUseListNode : public ArenaObject { // Set the position of the input record that this use corresponds to. void SetIndex(size_t index) { index_ = index; } - // Hook for the IntrusiveForwardList<>. - // TODO: Hide this better. - IntrusiveForwardListHook hook; - private: HUseListNode(T user, size_t index) : user_(user), index_(index) {} -- cgit v1.2.3-59-g8ed1b