aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-12-09 09:44:01 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-12-09 09:45:04 +0000
commit3e5f54d6d710b1616a6467bfcd64c0d9e4f42af0 (patch)
treec4a2a3cb251ab75c8b3c1459cf50ed75fa645ef0 /llvm/lib/Object/COFFObjectFile.cpp
parent138942c833b3baa12d19216797efca6d4dd010d2 (diff)
downloadllvm-3e5f54d6d710b1616a6467bfcd64c0d9e4f42af0.zip
llvm-3e5f54d6d710b1616a6467bfcd64c0d9e4f42af0.tar.gz
llvm-3e5f54d6d710b1616a6467bfcd64c0d9e4f42af0.tar.bz2
Revert D139098 "[Alignment] Use Align for ObjectFile::getSectionAlignment"
This breaks lld. This reverts commit 10c47465e2505ddfee4e62a2ab2e535abea3ec56.
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 a74ff39..d0ca50e 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -299,9 +299,9 @@ COFFObjectFile::getSectionContents(DataRefImpl Ref) const {
return Res;
}
-Align COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
+uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
const coff_section *Sec = toSec(Ref);
- return Align(Sec->getAlignment());
+ return Sec->getAlignment();
}
bool COFFObjectFile::isSectionCompressed(DataRefImpl Sec) const {