diff options
author | 2017-10-12 09:05:08 +0000 | |
---|---|---|
committer | 2017-10-12 09:05:08 +0000 | |
commit | 0284f43d625f0776ee0586a7cc321e11f5405e8c (patch) | |
tree | 983c86ff79f2a5a089bfa44ec27a5f2c5d6206b6 /compiler/utils/assembler_test.h | |
parent | 128acd4b5b34cdd51328de03df085deaa040b864 (diff) | |
parent | 52d52f5dc3e005829926e68c656fb27e8b008ae9 (diff) |
Merge changes I4bbb21bf,Ie79b46cd,Ia50aafc8
* changes:
Use ScopedArenaAllocator in GVN.
Use ScopedArenaAllocator for Phi elimination pass.
Use ScopedArenaAllocator for building HGraph.
Diffstat (limited to 'compiler/utils/assembler_test.h')
-rw-r--r-- | compiler/utils/assembler_test.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h index 11a9b91600..ae7636b106 100644 --- a/compiler/utils/assembler_test.h +++ b/compiler/utils/assembler_test.h @@ -719,8 +719,8 @@ class AssemblerTest : public testing::Test { explicit AssemblerTest() {} void SetUp() OVERRIDE { - arena_.reset(new ArenaAllocator(&pool_)); - assembler_.reset(CreateAssembler(arena_.get())); + allocator_.reset(new ArenaAllocator(&pool_)); + assembler_.reset(CreateAssembler(allocator_.get())); test_helper_.reset( new AssemblerTestInfrastructure(GetArchitectureString(), GetAssemblerCmdName(), @@ -737,7 +737,7 @@ class AssemblerTest : public testing::Test { void TearDown() OVERRIDE { test_helper_.reset(); // Clean up the helper. assembler_.reset(); - arena_.reset(); + allocator_.reset(); } // Override this to set up any architecture-specific things, e.g., CPU revision. @@ -1589,7 +1589,7 @@ class AssemblerTest : public testing::Test { static constexpr size_t kWarnManyCombinationsThreshold = 500; ArenaPool pool_; - std::unique_ptr<ArenaAllocator> arena_; + std::unique_ptr<ArenaAllocator> allocator_; std::unique_ptr<Ass> assembler_; std::unique_ptr<AssemblerTestInfrastructure> test_helper_; |