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/compiled_method.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/compiled_method.cc') diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index 03b87ef09e..e7cdd6eec5 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -51,7 +51,7 @@ size_t CompiledCode::AlignCode(size_t offset) const { } size_t CompiledCode::AlignCode(size_t offset, InstructionSet instruction_set) { - return RoundUp(offset, GetInstructionSetAlignment(instruction_set)); + return RoundUp(offset, GetInstructionSetCodeAlignment(instruction_set)); } size_t CompiledCode::CodeDelta() const { -- cgit v1.2.3-59-g8ed1b