From 7dec3562e903bf038f22c763fccd4dfa77f0468b Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 29 Sep 2022 11:55:37 +0200 Subject: Rename `GetInstructionSet{,Code}Alignment`. Update the `GetInstructionSetAlignment()` function name to `GetInstructionSetCodeAlignment()` in line with renames from https://android-review.googlesource.com/2229498 . Move the function to `instruction_set.h` and change the handling of unknown instruction sets to the approach used in other functions in the header file. Test: buildbot-build.sh --target Change-Id: I8239b94b56bf24f4e99a2d72ba10ec1f5a055d36 --- compiler/common_compiler_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/common_compiler_test.cc') diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index ab0e3e17cf..a63d21d4ca 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -58,7 +58,7 @@ class CommonCompilerTestImpl::CodeAndMetadata { const uint32_t vmap_table_offset = vmap_table.empty() ? 0u : sizeof(OatQuickMethodHeader) + vmap_table.size(); OatQuickMethodHeader method_header(vmap_table_offset); - const size_t code_alignment = GetInstructionSetAlignment(instruction_set); + const size_t code_alignment = GetInstructionSetCodeAlignment(instruction_set); DCHECK_ALIGNED_PARAM(kPageSize, code_alignment); code_offset_ = RoundUp(vmap_table.size() + sizeof(method_header), code_alignment); const uint32_t capacity = RoundUp(code_offset_ + code_size, kPageSize); -- cgit v1.2.3-59-g8ed1b