summaryrefslogtreecommitdiff
path: root/compiler/compiled_method.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-09-29 11:55:37 +0200
committer VladimĂ­r Marko <vmarko@google.com> 2022-09-29 12:09:38 +0000
commit7dec3562e903bf038f22c763fccd4dfa77f0468b (patch)
treea05c6048127fe1b1a211c09d3b8743ec439676ab /compiler/compiled_method.cc
parent8a9b1a801acc633a4e1ea2226843c899a542ed70 (diff)
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
Diffstat (limited to 'compiler/compiled_method.cc')
-rw-r--r--compiler/compiled_method.cc2
1 files changed, 1 insertions, 1 deletions
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 {