diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2022-12-01 12:34:21 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2022-12-09 09:34:43 +0000 |
| commit | 10c47465e2505ddfee4e62a2ab2e535abea3ec56 (patch) | |
| tree | 38d9b76aad1ecf72737610cf69209b7d2818f55e /llvm/lib/Object/COFFObjectFile.cpp | |
| parent | 9556b678408bdbd53083938346dbb7b0467176ac (diff) | |
[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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index d0ca50e3506b..a74ff39986cb 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 { |
