aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-12-01 12:34:21 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-12-09 09:34:43 +0000
commit10c47465e2505ddfee4e62a2ab2e535abea3ec56 (patch)
tree38d9b76aad1ecf72737610cf69209b7d2818f55e /llvm/lib/Object/WasmObjectFile.cpp
parent9556b678408bdbd53083938346dbb7b0467176ac (diff)
downloadllvm-10c47465e2505ddfee4e62a2ab2e535abea3ec56.zip
llvm-10c47465e2505ddfee4e62a2ab2e535abea3ec56.tar.gz
llvm-10c47465e2505ddfee4e62a2ab2e535abea3ec56.tar.bz2
[Alignment] Use Align for ObjectFile::getSectionAlignment
Differential Revision: https://reviews.llvm.org/D139098
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r--llvm/lib/Object/WasmObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index 0e24ac9..6657102 100644
--- a/llvm/lib/Object/WasmObjectFile.cpp
+++ b/llvm/lib/Object/WasmObjectFile.cpp
@@ -1735,8 +1735,8 @@ WasmObjectFile::getSectionContents(DataRefImpl Sec) const {
return S.Content;
}
-uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const {
- return 1;
+Align WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const {
+ return Align(1);
}
bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const {