aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.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/COFFObjectFile.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/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index d0ca50e..a74ff39 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -299,9 +299,9 @@ COFFObjectFile::getSectionContents(DataRefImpl Ref) const {
return Res;
}
-uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
+Align COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
const coff_section *Sec = toSec(Ref);
- return Sec->getAlignment();
+ return Align(Sec->getAlignment());
}
bool COFFObjectFile::isSectionCompressed(DataRefImpl Sec) const {