aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-11-24 15:23:06 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-11-24 16:09:44 +0000
commit6c09ea3fdd6fb8001a079bc892aa095e9693b932 (patch)
tree1c803f13b31cbeb2135389f77c82a6f3b5e96480 /llvm/lib/CodeGen/AsmPrinter/WinException.cpp
parentb9e3f5f864fb1944be60725aca400a9332ac6aa5 (diff)
downloadllvm-6c09ea3fdd6fb8001a079bc892aa095e9693b932.zip
llvm-6c09ea3fdd6fb8001a079bc892aa095e9693b932.tar.gz
llvm-6c09ea3fdd6fb8001a079bc892aa095e9693b932.tar.bz2
[Alignment][NFC] Use Align in MCStreamer::emitValueToAlignment
Differential Revision: https://reviews.llvm.org/D138674
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinException.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
index c3ca9c9..2f1f15e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
@@ -736,7 +736,7 @@ void WinException::emitCXXFrameHandler3Table(const MachineFunction *MF) {
// EHFlags & 1 -> Synchronous exceptions only, no async exceptions.
// EHFlags & 2 -> ???
// EHFlags & 4 -> The function is noexcept(true), unwinding can't continue.
- OS.emitValueToAlignment(4);
+ OS.emitValueToAlignment(Align(4));
OS.emitLabel(FuncInfoXData);
AddComment("MagicNumber");
@@ -1010,7 +1010,7 @@ void WinException::emitExceptHandlerTable(const MachineFunction *MF) {
// Emit the __ehtable label that we use for llvm.x86.seh.lsda.
MCSymbol *LSDALabel = Asm->OutContext.getOrCreateLSDASymbol(FLinkageName);
- OS.emitValueToAlignment(4);
+ OS.emitValueToAlignment(Align(4));
OS.emitLabel(LSDALabel);
const auto *Per = cast<Function>(F.getPersonalityFn()->stripPointerCasts());