diff options
author | 2016-04-14 14:01:33 -0700 | |
---|---|---|
committer | 2016-06-14 10:31:31 -0700 | |
commit | 3add9cb5e94202e65ec3c80f0b70b670d4fa63a1 (patch) | |
tree | 8a6b6def3ead8480bdd401534d0f148b4bbbfa13 /compiler/utils/assembler_test.h | |
parent | 63e0a7d057adbe17ba0d34624d83f1120cb1162f (diff) |
MIPS32: Assembler tests for MIPS32R6
Change-Id: Iee3f4447a6182a769490b3235abeea9551111193
Diffstat (limited to 'compiler/utils/assembler_test.h')
-rw-r--r-- | compiler/utils/assembler_test.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h index 084e9011ba..afe0576906 100644 --- a/compiler/utils/assembler_test.h +++ b/compiler/utils/assembler_test.h @@ -461,7 +461,7 @@ class AssemblerTest : public testing::Test { void SetUp() OVERRIDE { arena_.reset(new ArenaAllocator(&pool_)); - assembler_.reset(new (arena_.get()) Ass(arena_.get())); + assembler_.reset(CreateAssembler(arena_.get())); test_helper_.reset( new AssemblerTestInfrastructure(GetArchitectureString(), GetAssemblerCmdName(), @@ -481,6 +481,11 @@ class AssemblerTest : public testing::Test { arena_.reset(); } + // Override this to set up any architecture-specific things, e.g., CPU revision. + virtual Ass* CreateAssembler(ArenaAllocator* arena) { + return new (arena) Ass(arena); + } + // Override this to set up any architecture-specific things, e.g., register vectors. virtual void SetUpHelpers() {} |