summaryrefslogtreecommitdiff
path: root/COFF/Chunks.h
diff options
context:
space:
mode:
Diffstat (limited to 'COFF/Chunks.h')
-rw-r--r--COFF/Chunks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/COFF/Chunks.h b/COFF/Chunks.h
index 60b8e76f82306..274135516eb99 100644
--- a/COFF/Chunks.h
+++ b/COFF/Chunks.h
@@ -326,6 +326,10 @@ public:
uint8_t Type;
};
+inline uint64_t align(uint64_t Value, uint64_t Align) {
+ return llvm::RoundUpToAlignment(Value, Align);
+}
+
} // namespace coff
} // namespace lld