From 10c47465e2505ddfee4e62a2ab2e535abea3ec56 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Thu, 1 Dec 2022 12:34:21 +0000 Subject: [Alignment] Use Align for ObjectFile::getSectionAlignment Differential Revision: https://reviews.llvm.org/D139098 --- llvm/lib/Object/COFFObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object/COFFObjectFile.cpp') 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 { -- cgit v1.1